Lines Matching refs:caps
86 int capability_update_inherited_set(cap_t caps, uint64_t set) { in capability_update_inherited_set() argument
96 if (cap_set_flag(caps, CAP_INHERITABLE, 1, &v, flag) < 0) in capability_update_inherited_set()
104 _cleanup_cap_free_ cap_t caps = NULL; in capability_ambient_set_apply() local
128 caps = cap_get_proc(); in capability_ambient_set_apply()
129 if (!caps) in capability_ambient_set_apply()
132 r = capability_update_inherited_set(caps, set); in capability_ambient_set_apply()
136 if (cap_set_proc(caps) < 0) in capability_ambient_set_apply()
165 _cleanup_cap_free_ cap_t caps = NULL; in capability_gain_cap_setpcap() local
167 caps = cap_get_proc(); in capability_gain_cap_setpcap()
168 if (!caps) in capability_gain_cap_setpcap()
171 if (cap_get_flag(caps, CAP_SETPCAP, CAP_EFFECTIVE, &fv) < 0) in capability_gain_cap_setpcap()
178 temp_cap = cap_dup(caps); in capability_gain_cap_setpcap()
193 *ret_before_caps = TAKE_PTR(caps); in capability_gain_cap_setpcap()