Searched refs:save_caps (Results 1 – 2 of 2) sorted by relevance
219 __u64 save_caps = 0; in test_unpriv_bpf_disabled_negative() 275 if (!ASSERT_OK(cap_disable_effective(ALL_CAPS, &save_caps), "disable caps")) in test_unpriv_bpf_disabled() 288 if (save_caps) in test_unpriv_bpf_disabled() 289 cap_enable_effective(save_caps, NULL); in test_unpriv_bpf_disabled() 238 __u64 save_caps = 0; test_unpriv_bpf_disabled() local
306 __u64 save_caps = 0; in test_destructive() local310 if (!ASSERT_OK(cap_disable_effective(1ULL << CAP_SYS_BOOT, &save_caps), "drop_caps")) in test_destructive()315 cap_enable_effective(save_caps, NULL); in test_destructive()