Searched refs:cap_enable_effective (Results 1 – 11 of 11) sorted by relevance
/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/ |
D | deny_namespace.c | 54 cap_enable_effective(cap_mask, &old_caps); in test_userns_create_bpf() 63 cap_enable_effective(cap_mask, NULL); in test_userns_create_bpf() 76 cap_enable_effective(cap_mask, NULL); in test_unpriv_userns_create_no_bpf()
|
D | verifier.c | 128 err = cap_enable_effective(old_caps, NULL); in run_tests_aux() 233 ret = cap_enable_effective(1ULL << CAP_BPF | 1ULL << CAP_NET_ADMIN, &caps); in test_verifier_mtu() 242 cap_enable_effective(caps, NULL); in test_verifier_mtu()
|
D | bind_perm.c | 86 ASSERT_OK(cap_enable_effective(net_bind_svc_cap, NULL), in test_bind_perm()
|
D | tc_bpf.c | 405 ret = cap_enable_effective(1ULL << CAP_BPF | 1ULL << CAP_NET_ADMIN, &caps); in tc_bpf_non_root() 420 cap_enable_effective(caps, NULL); in tc_bpf_non_root()
|
D | kfunc_call.c | 309 cap_enable_effective(save_caps, NULL); in test_destructive()
|
D | unpriv_bpf_disabled.c | 308 cap_enable_effective(save_caps, NULL); in test_unpriv_bpf_disabled()
|
D | token.c | 67 return cap_enable_effective(old_caps, NULL); in restore_priv_caps()
|
/linux-6.12.1/tools/testing/selftests/bpf/ |
D | cap_helpers.h | 16 int cap_enable_effective(__u64 caps, __u64 *old_caps);
|
D | cap_helpers.c | 10 int cap_enable_effective(__u64 caps, __u64 *old_caps) in cap_enable_effective() function
|
D | test_verifier.c | 884 if (cap_enable_effective(1ULL << CAP_SYS_ADMIN, &caps)) in set_root() 1245 err = cap_enable_effective(ADMIN_CAPS, NULL); in set_admin()
|
D | test_loader.c | 752 err = cap_enable_effective(caps->old_caps, NULL); in restore_capabilities()
|