]> Git Repo - linux.git/commit
bpf: Always test unprivileged programs
authorMickaël Salaün <[email protected]>
Thu, 9 Feb 2017 23:21:37 +0000 (00:21 +0100)
committerDavid S. Miller <[email protected]>
Fri, 10 Feb 2017 20:56:06 +0000 (15:56 -0500)
commitd02d8986a7688d3f0ff6ef61aa6beb41427692eb
tree6cbd12affd3f5bea50b80fcee2f688a80c45a5b0
parent7f73f39a89c25c04ac684661ee61edcae476eb15
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 <[email protected]>
Acked-by: Alexei Starovoitov <[email protected]>
Acked-by: Daniel Borkmann <[email protected]>
Cc: Shuah Khan <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
tools/testing/selftests/bpf/Makefile
tools/testing/selftests/bpf/test_verifier.c
This page took 0.053916 seconds and 4 git commands to generate.