Lines Matching refs:permitted
201 kernel_cap_t *inheritable, kernel_cap_t *permitted) in cap_capget() argument
210 *permitted = cred->cap_permitted; in cap_capget()
246 const kernel_cap_t *permitted) in cap_capset() argument
262 if (!cap_issubset(*permitted, old->cap_permitted)) in cap_capset()
266 if (!cap_issubset(*effective, *permitted)) in cap_capset()
271 new->cap_permitted = *permitted; in cap_capset()
278 cap_intersect(*permitted, in cap_capset()
605 (new->cap_bset.val & caps->permitted.val) | in bprm_caps_from_vfs_caps()
608 if (caps->permitted.val & ~new->cap_permitted.val) in bprm_caps_from_vfs_caps()
698 cpu_caps->permitted.val = le32_to_cpu(caps->data[0].permitted); in get_vfs_caps_from_disk()
706 cpu_caps->permitted.val += (u64)le32_to_cpu(caps->data[1].permitted) << 32; in get_vfs_caps_from_disk()
710 cpu_caps->permitted.val &= CAP_VALID_MASK; in get_vfs_caps_from_disk()
866 __cap_gained(permitted, new, old)) || in nonroot_raised_pE()
906 if (__cap_gained(permitted, new, old)) in cap_bprm_creds_from_file()
916 if ((is_setid || __cap_gained(permitted, new, old)) && in cap_bprm_creds_from_file()
969 __cap_grew(permitted, ambient, new)))) in cap_bprm_creds_from_file()