Home
last modified time | relevance | path

Searched refs:cap_disable_effective (Results 1 – 10 of 10) sorted by relevance

/linux/tools/testing/selftests/bpf/prog_tests/
H A Ddeny_namespace.c58 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()
H A Dbind_perm.c76 ASSERT_OK(cap_disable_effective(net_bind_svc_cap, &old_caps), in test_bind_perm()
H A Dverifier.c122 err = cap_disable_effective(1ULL << CAP_SYS_ADMIN, &old_caps); in run_tests_aux()
H A Dkfunc_call.c304 if (!ASSERT_OK(cap_disable_effective(1ULL << CAP_SYS_BOOT, &save_caps), "drop_caps")) in test_destructive()
H A Dunpriv_bpf_disabled.c294 if (!ASSERT_OK(cap_disable_effective(ALL_CAPS, &save_caps), "disable caps")) in test_unpriv_bpf_disabled()
H A Dtc_bpf.c408 ret = cap_disable_effective(1ULL << CAP_SYS_ADMIN | 1ULL << CAP_PERFMON, NULL); in tc_bpf_non_root()
H A Dtoken.c59 return cap_disable_effective((1ULL << CAP_BPF) | in drop_priv_caps()
/linux/tools/testing/selftests/bpf/
H A Dcap_helpers.h17 int cap_disable_effective(__u64 caps, __u64 *old_caps);
H A Dcap_helpers.c40 int cap_disable_effective(__u64 caps, __u64 *old_caps) in cap_disable_effective() function
H A Dtest_loader.c774 err = cap_disable_effective(caps_to_drop, &caps->old_caps); in drop_capabilities()