Searched refs:save_caps (Results 1 – 2 of 2) sorted by relevance
238 __u64 save_caps = 0; in test_unpriv_bpf_disabled() local294 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()
300 __u64 save_caps = 0; in test_destructive() local304 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()