diff options
author | Tycho Andersen | 2019-01-19 01:12:15 +0100 |
---|---|---|
committer | Greg Kroah-Hartman | 2019-04-05 22:33:07 +0200 |
commit | c63cc8d1487c3a15baa03c016a4b4344cbd0137d (patch) | |
tree | b6dce18ed6b13485c443ace89ec4df105bc26aea /scripts/Makefile.modbuiltin | |
parent | ACPI / video: Refactor and fix dmi_is_desktop() (diff) | |
download | kernel-qcow2-linux-c63cc8d1487c3a15baa03c016a4b4344cbd0137d.tar.gz kernel-qcow2-linux-c63cc8d1487c3a15baa03c016a4b4344cbd0137d.tar.xz kernel-qcow2-linux-c63cc8d1487c3a15baa03c016a4b4344cbd0137d.zip |
selftests: skip seccomp get_metadata test if not real root
[ Upstream commit 3aa415dd2128e478ea3225b59308766de0e94d6b ]
The get_metadata() test requires real root, so let's skip it if we're not
real root.
Note that I used XFAIL here because that's what the test does later if
CONFIG_CHEKCKPOINT_RESTORE happens to not be enabled. After looking at the
code, there doesn't seem to be a nice way to skip tests defined as TEST(),
since there's no return code (I tried exit(KSFT_SKIP), but that didn't work
either...). So let's do it this way to be consistent, and easier to fix
when someone comes along and fixes it.
Signed-off-by: Tycho Andersen <tycho@tycho.ws>
Acked-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Shuah Khan <shuah@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'scripts/Makefile.modbuiltin')
0 files changed, 0 insertions, 0 deletions