diff options
author | Andrey Ignatov <[email protected]> | 2019-03-08 15:08:21 -0800 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2019-04-12 13:54:58 -0700 |
commit | 1f5fa9ab6e2eb16ba81284280a498fe9c543a2d8 (patch) | |
tree | 8fa0d65f9dfe080a7324c2255b0ec4c384c668a6 /tools/perf/scripts/python/syscall-counts-by-pid.py | |
parent | 7007af63da3bf6764c9208029a3585756260b55f (diff) |
selftests/bpf: Test BPF_CGROUP_SYSCTL
Add unit test for BPF_PROG_TYPE_CGROUP_SYSCTL program type.
Test that program can allow/deny access.
Test both valid and invalid accesses to ctx->write.
Example of output:
# ./test_sysctl
Test case: sysctl wrong attach_type .. [PASS]
Test case: sysctl:read allow all .. [PASS]
Test case: sysctl:read deny all .. [PASS]
Test case: ctx:write sysctl:read read ok .. [PASS]
Test case: ctx:write sysctl:write read ok .. [PASS]
Test case: ctx:write sysctl:read write reject .. [PASS]
Summary: 6 PASSED, 0 FAILED
Signed-off-by: Andrey Ignatov <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions