Lines Matching refs:effective
230 int cap_capget(const struct task_struct *target, kernel_cap_t *effective, in cap_capget() argument
238 *effective = cred->cap_effective; in cap_capget()
274 const kernel_cap_t *effective, in cap_capset() argument
296 if (!cap_issubset(*effective, *permitted)) in cap_capset()
299 new->cap_effective = *effective; in cap_capset()
618 bool *effective, in bprm_caps_from_vfs_caps() argument
625 *effective = true; in bprm_caps_from_vfs_caps()
647 return *effective ? ret : 0; in bprm_caps_from_vfs_caps()
754 bool *effective, bool *has_fcap) in get_file_caps() argument
786 rc = bprm_caps_from_vfs_caps(&vcaps, bprm, effective, has_fcap); in get_file_caps()
819 bool *effective, kuid_t root_uid) in handle_privileged_root() argument
849 *effective = true; in handle_privileged_root()
887 if ((__cap_grew(effective, ambient, new) && in nonroot_raised_pE()
888 !(__cap_full(effective, new) && in nonroot_raised_pE()
893 !__cap_full(effective, new)) || in nonroot_raised_pE()
920 bool effective = false, has_fcap = false, is_setid; in cap_bprm_creds_from_file() local
927 ret = get_file_caps(bprm, file, &effective, &has_fcap); in cap_bprm_creds_from_file()
933 handle_privileged_root(bprm, has_fcap, &effective, root_uid); in cap_bprm_creds_from_file()
976 if (effective) in cap_bprm_creds_from_file()
998 (effective || in cap_bprm_creds_from_file()