Searched refs:cap_disable_effective (Results 1 – 11 of 11) sorted by relevance
/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/ |
D | deny_namespace.c | 58 cap_disable_effective(cap_mask, &old_caps); in test_userns_create_bpf() 71 cap_disable_effective(cap_mask, &old_caps); in test_unpriv_userns_create_no_bpf()
|
D | verifier.c | 118 err = cap_disable_effective(1ULL << CAP_SYS_ADMIN, &old_caps); in run_tests_aux() 236 ret = cap_disable_effective(1ULL << CAP_SYS_ADMIN | 1ULL << CAP_PERFMON, NULL); in test_verifier_mtu()
|
D | bind_perm.c | 76 ASSERT_OK(cap_disable_effective(net_bind_svc_cap, &old_caps), in test_bind_perm()
|
D | kfunc_call.c | 304 if (!ASSERT_OK(cap_disable_effective(1ULL << CAP_SYS_BOOT, &save_caps), "drop_caps")) in test_destructive()
|
D | unpriv_bpf_disabled.c | 294 if (!ASSERT_OK(cap_disable_effective(ALL_CAPS, &save_caps), "disable caps")) in test_unpriv_bpf_disabled()
|
D | tc_bpf.c | 408 ret = cap_disable_effective(1ULL << CAP_SYS_ADMIN | 1ULL << CAP_PERFMON, NULL); in tc_bpf_non_root()
|
D | token.c | 59 return cap_disable_effective((1ULL << CAP_BPF) | in drop_priv_caps()
|
/linux-6.12.1/tools/testing/selftests/bpf/ |
D | cap_helpers.h | 17 int cap_disable_effective(__u64 caps, __u64 *old_caps);
|
D | cap_helpers.c | 40 int cap_disable_effective(__u64 caps, __u64 *old_caps) in cap_disable_effective() function
|
D | test_verifier.c | 887 if (cap_disable_effective(1ULL << CAP_SYS_ADMIN, &caps)) in set_root() 1249 err = cap_disable_effective(ADMIN_CAPS, NULL); in set_admin() 1735 if (cap_disable_effective(1ULL << CAP_SYS_ADMIN, &caps)) { in is_admin()
|
D | test_loader.c | 735 err = cap_disable_effective(caps_to_drop, &caps->old_caps); in drop_capabilities()
|