summaryrefslogtreecommitdiff
path: root/sysctl.h
AgeCommit message (Expand)AuthorFilesLines
2015-07-30sysctl: Export procfs base path in sysctl.hTobias Klauser1-0/+2
2015-07-20sysctl: Add sysctl module with /proc/sys helpersVadim Kochan1-0/+7
='ctrl'>
authorMickaël Salaün <mic@digikod.net>2017-02-10 00:21:37 +0100
committerDavid S. Miller <davem@davemloft.net>2017-02-10 15:56:06 -0500
commitd02d8986a7688d3f0ff6ef61aa6beb41427692eb (patch)
tree6cbd12affd3f5bea50b80fcee2f688a80c45a5b0 /tools
parent7f73f39a89c25c04ac684661ee61edcae476eb15 (diff)
bpf: Always test unprivileged programs
If selftests are run as root, then execute the unprivileged checks as well. This switch from 243 to 368 tests. The test numbers are suffixed with "/u" when executed as unprivileged or with "/p" when executed as privileged. The geteuid() check is replaced with a capability check. Handling capabilities requires the libcap dependency. Signed-off-by: Mickaël Salaün <mic@digikod.net> Acked-by: Alexei Starovoitov <ast@kernel.org> Acked-by: Daniel Borkmann <daniel@iogearbox.net> Cc: Shuah Khan <shuah@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools')
-rw-r--r--tools/testing/selftests/bpf/Makefile2
-rw-r--r--tools/testing/selftests/bpf/test_verifier.c68
2 files changed, 64 insertions, 6 deletions
diff --git a/tools/testing/selftests/bpf/Makefile b/tools/testing/selftests/bpf/Makefile