Home
last modified time | relevance | path

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

/linux-6.3-rc2/tools/testing/selftests/bpf/prog_tests/
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()
A Dbind_perm.c78 ASSERT_OK(cap_disable_effective(net_bind_svc_cap, &old_caps), in test_bind_perm()
A Dkfunc_call.c302 if (!ASSERT_OK(cap_disable_effective(1ULL << CAP_SYS_BOOT, &save_caps), "drop_caps")) in test_destructive()
A Dunpriv_bpf_disabled.c289 if (!ASSERT_OK(cap_disable_effective(ALL_CAPS, &save_caps), "disable caps")) in test_unpriv_bpf_disabled()
/linux-6.3-rc2/tools/testing/selftests/bpf/
A Dcap_helpers.h17 int cap_disable_effective(__u64 caps, __u64 *old_caps);
A Dcap_helpers.c40 int cap_disable_effective(__u64 caps, __u64 *old_caps) in cap_disable_effective() function
A Dtest_verifier.c1143 err = cap_disable_effective(ADMIN_CAPS, NULL); in set_admin()
1660 if (cap_disable_effective(1ULL << CAP_SYS_ADMIN, &caps)) { in is_admin()

Completed in 11 milliseconds