Skip to content

seccomp test fixes

Tycho Andersen linux-kselftest lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6selftests: don't kill child immediately in get_metadata() testtools/testing/selftests/seccomp/seccomp_bpf.c+3 -30 replies
2/6selftests: fix typo in seccomp_bpf.ctools/testing/selftests/seccomp/seccomp_bpf.c+1 -10 replies
3/6selftest: include stdio.h in kselftest.htools/testing/selftests/kselftest.h+1 -00 replies
4/6selftests: skip seccomp get_metadata test if not real roottools/testing/selftests/seccomp/seccomp_bpf.c+6 -00 replies
5/6selftests: set NO_NEW_PRIVS bit in seccomp user teststools/testing/selftests/seccomp/seccomp_bpf.c+24 -00 replies
6/6selftests: unshare userns in seccomp pidns testcasestools/testing/selftests/seccomp/seccomp_bpf.c+3 -10 replies

Reviews trailers per patch

None of the 6 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchKees Cook
SeriesA-b
1/6
2/6
3/6
4/6
5/6
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH v1 0/6] seccomp test fixes

Hi all,

Here are the fixes I previously mentioned I would send. I previously assumed that the tests were mostly run as root, but it turns out everything else besides the stuff I wrote in the seccomp tests either sets NNP and doesn't require real root, so it all actually works. This set of fixes should make most of the other tests work unprivileged, while XFAIL-ing the one that requires real root.

Cheers,

Tycho

Tycho Andersen (6):
selftests: don't kill child immediately in get_metadata() test
selftests: fix typo in seccomp_bpf.c
selftest: include stdio.h in kselftest.h
selftests: skip seccomp get_metadata test if not real root
selftests: set NO_NEW_PRIVS bit in seccomp user tests
selftests: unshare userns in seccomp pidns testcases

 tools/testing/selftests/kselftest.h           |  1 +
 tools/testing/selftests/seccomp/seccomp_bpf.c | 42 ++++++++++++++++---
 2 files changed, 38 insertions(+), 5 deletions(-)
Signature · 1 line
2.19.1