Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/bpf/prog_tests/
H A Dunpriv_bpf_disabled.c238 __u64 save_caps = 0; in test_unpriv_bpf_disabled() local
294 if (!ASSERT_OK(cap_disable_effective(ALL_CAPS, &save_caps), "disable caps")) in test_unpriv_bpf_disabled()
307 if (save_caps) in test_unpriv_bpf_disabled()
308 cap_enable_effective(save_caps, NULL); in test_unpriv_bpf_disabled()
H A Dkfunc_call.c300 __u64 save_caps = 0; in test_destructive() local
304 if (!ASSERT_OK(cap_disable_effective(1ULL << CAP_SYS_BOOT, &save_caps), "drop_caps")) in test_destructive()
309 cap_enable_effective(save_caps, NULL); in test_destructive()