Home
last modified time | relevance | path

Searched refs:save_caps (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dunpriv_bpf_disabled.c237 __u64 save_caps = 0; in test_unpriv_bpf_disabled() local
293 if (!ASSERT_OK(cap_disable_effective(ALL_CAPS, &save_caps), "disable caps")) in test_unpriv_bpf_disabled()
306 if (save_caps) in test_unpriv_bpf_disabled()
307 cap_enable_effective(save_caps, NULL); in test_unpriv_bpf_disabled()
H A Dkfunc_call.c298 __u64 save_caps = 0; in test_destructive() local
302 if (!ASSERT_OK(cap_disable_effective(1ULL << CAP_SYS_BOOT, &save_caps), "drop_caps")) in test_destructive()
307 cap_enable_effective(save_caps, NULL); in test_destructive()