Skip to content
Commit e8c8361c authored by Alexei Starovoitov's avatar Alexei Starovoitov
Browse files

selftests/bpf: Fix progs/test_deny_namespace.c issues.



The following build error can be seen:
progs/test_deny_namespace.c:22:19: error: call to undeclared function 'BIT_LL'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
        __u64 cap_mask = BIT_LL(CAP_SYS_ADMIN);

The struct kernel_cap_struct no longer exists in the kernel as well.
Adjust bpf prog to fix both issues.

Fixes: f122a08b ("capability: just use a 'u64' instead of a 'u32[2]' array")
Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
parent 32513d40
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment