Lines Matching defs:effective
48 " effective capabilities. Therefore not raising all"
69 * cap_capable - Determine whether a task has a particular effective capability
76 * its effective set, returning 0 if it does, -ve if it does not.
149 * @effective: The place to record the effective set
156 int cap_capget(struct task_struct *target, kernel_cap_t *effective,
164 *effective = cred->cap_effective;
191 * @effective: A pointer to the proposed new effective capabilities set
201 const kernel_cap_t *effective,
223 if (!cap_issubset(*effective, *permitted))
226 new->cap_effective = *effective;
290 bool *effective)
297 *effective = true;
320 return *effective ? ret : 0;
382 static int get_file_caps(struct linux_binprm *bprm, bool *effective)
408 rc = bprm_caps_from_vfs_caps(&vcaps, bprm, effective);
433 bool effective;
436 effective = false;
437 ret = get_file_caps(bprm, &effective);
447 if (effective && new->uid != 0 && new->euid == 0) {
456 * If only the real uid is 0, we do not set the effective bit.
464 effective = true;
491 if (effective)
496 bprm->cap_effective = effective;
606 * cap_emulate_setxuid() fixes the effective / permitted capabilities of
610 * {r,e,s}uid != 0, the permitted and effective capabilities are
613 * 2) When set*uiding _from_ euid == 0 _to_ euid != 0, the effective
616 * 3) When set*uiding _from_ euid != 0 _to_ euid == 0, the effective
627 * effective sets will be retained.