mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
Now that defining trusted fields in a struct is supported, we should add selftests to verify the behavior. This patch adds a few such testcases. Signed-off-by: David Vernet <void@manifault.com> Link: https://lore.kernel.org/r/20230125143816.721952-4-void@manifault.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
12 lines
303 B
C
12 lines
303 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
/* Copyright (c) 2023 Meta Platforms, Inc. and affiliates. */
|
|
|
|
#include <test_progs.h>
|
|
#include "nested_trust_failure.skel.h"
|
|
#include "nested_trust_success.skel.h"
|
|
|
|
void test_nested_trust(void)
|
|
{
|
|
RUN_TESTS(nested_trust_success);
|
|
RUN_TESTS(nested_trust_failure);
|
|
}
|