selftests/bpf: Fix progs/test_deny_namespace.c issues.
authorAlexei Starovoitov <ast@kernel.org>
Fri, 10 Mar 2023 20:47:51 +0000 (12:47 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 10 Mar 2023 20:54:12 +0000 (12:54 -0800)
commite8c8361cfdbf450f760e8a2bdbd4222d1947366b
tree5c1e10ba7a7146018a51789e69b7ffc2aa32f955
parent32513d40d908b267508d37994753d9bd1600914b
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: f122a08b197d ("capability: just use a 'u64' instead of a 'u32[2]' array")
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/progs/test_deny_namespace.c