Lines Matching refs:permitted
200 kernel_cap_t *inheritable, kernel_cap_t *permitted) in cap_capget() argument
209 *permitted = cred->cap_permitted; in cap_capget()
245 const kernel_cap_t *permitted) in cap_capset() argument
261 if (!cap_issubset(*permitted, old->cap_permitted)) in cap_capset()
265 if (!cap_issubset(*effective, *permitted)) in cap_capset()
270 new->cap_permitted = *permitted; in cap_capset()
277 cap_intersect(*permitted, in cap_capset()
545 __u32 permitted = caps->permitted.cap[i]; in bprm_caps_from_vfs_caps() local
553 (new->cap_bset.cap[i] & permitted) | in bprm_caps_from_vfs_caps()
556 if (permitted & ~new->cap_permitted.cap[i]) in bprm_caps_from_vfs_caps()
635 cpu_caps->permitted.cap[i] = le32_to_cpu(caps->data[i].permitted); in get_vfs_caps_from_disk()
639 cpu_caps->permitted.cap[CAP_LAST_U32] &= CAP_LAST_U32_VALID_MASK; in get_vfs_caps_from_disk()
793 __cap_gained(permitted, new, old)) || in nonroot_raised_pE()
829 if (__cap_gained(permitted, new, old)) in cap_bprm_set_creds()
839 if ((is_setid || __cap_gained(permitted, new, old)) && in cap_bprm_set_creds()
893 __cap_grew(permitted, ambient, new)))) in cap_bprm_set_creds()