Lines Matching refs:effective
230 int cap_capget(struct task_struct *target, kernel_cap_t *effective, in cap_capget() argument
238 *effective = cred->cap_effective; in cap_capget()
275 const kernel_cap_t *effective, in cap_capset() argument
297 if (!cap_issubset(*effective, *permitted)) in cap_capset()
300 new->cap_effective = *effective; in cap_capset()
562 bool *effective, in bprm_caps_from_vfs_caps() argument
570 *effective = true; in bprm_caps_from_vfs_caps()
597 return *effective ? ret : 0; in bprm_caps_from_vfs_caps()
680 static int get_file_caps(struct linux_binprm *bprm, bool *effective, bool *has_cap) in get_file_caps() argument
711 rc = bprm_caps_from_vfs_caps(&vcaps, bprm, effective, has_cap); in get_file_caps()
735 bool effective, has_cap = false, is_setid; in cap_bprm_set_creds() local
742 effective = false; in cap_bprm_set_creds()
743 ret = get_file_caps(bprm, &effective, &has_cap); in cap_bprm_set_creds()
772 effective = true; in cap_bprm_set_creds()
819 if (effective) in cap_bprm_set_creds()
859 if (effective || in cap_bprm_set_creds()