Home
last modified time | relevance | path

Searched refs:cap_enable_effective (Results 1 – 11 of 11) sorted by relevance

/tools/testing/selftests/bpf/prog_tests/
A Ddeny_namespace.c54 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()
A Dbind_perm.c86 ASSERT_OK(cap_enable_effective(net_bind_svc_cap, NULL), in test_bind_perm()
A Dtc_bpf.c405 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()
A Dverifier.c136 err = cap_enable_effective(old_caps, NULL); in run_tests_aux()
A Dkfunc_call.c309 cap_enable_effective(save_caps, NULL); in test_destructive()
A Dunpriv_bpf_disabled.c308 cap_enable_effective(save_caps, NULL); in test_unpriv_bpf_disabled()
A Dtoken.c68 return cap_enable_effective(old_caps, NULL); in restore_priv_caps()
/tools/testing/selftests/bpf/
A Dcap_helpers.h17 int cap_enable_effective(__u64 caps, __u64 *old_caps);
A Dcap_helpers.c10 int cap_enable_effective(__u64 caps, __u64 *old_caps) in cap_enable_effective() function
A Dtest_loader.c805 err = cap_enable_effective(caps->old_caps, NULL); in restore_capabilities()
980 err = cap_enable_effective(subspec->caps, NULL); in run_subtest()
A Dtest_verifier.c880 if (cap_enable_effective(1ULL << CAP_SYS_ADMIN, &caps)) in set_root()
1241 err = cap_enable_effective(ADMIN_CAPS, NULL); in set_admin()

Completed in 24 milliseconds