Searched refs:old_caps (Results 1 – 4 of 4) sorted by relevance
52 __u64 old_caps = 0; in test_userns_create_bpf() local54 cap_enable_effective(cap_mask, &old_caps); in test_userns_create_bpf()58 cap_disable_effective(cap_mask, &old_caps); in test_userns_create_bpf()62 if (cap_mask & old_caps) in test_userns_create_bpf()69 __u64 old_caps = 0; in test_unpriv_userns_create_no_bpf() local71 cap_disable_effective(cap_mask, &old_caps); in test_unpriv_userns_create_no_bpf()75 if (cap_mask & old_caps) in test_unpriv_userns_create_no_bpf()
56 __u64 old_caps = 0; in test_bind_perm() local78 ASSERT_OK(cap_disable_effective(net_bind_svc_cap, &old_caps), in test_bind_perm()87 if (old_caps & net_bind_svc_cap) in test_bind_perm()
10 int cap_enable_effective(__u64 caps, __u64 *old_caps) in cap_enable_effective() argument24 if (old_caps) in cap_enable_effective()25 *old_caps = (__u64)(data[1].effective) << 32 | data[0].effective; in cap_enable_effective()40 int cap_disable_effective(__u64 caps, __u64 *old_caps) in cap_disable_effective() argument54 if (old_caps) in cap_disable_effective()55 *old_caps = (__u64)(data[1].effective) << 32 | data[0].effective; in cap_disable_effective()
16 int cap_enable_effective(__u64 caps, __u64 *old_caps);17 int cap_disable_effective(__u64 caps, __u64 *old_caps);