Lines Matching refs:has_fcap
531 bool *has_fcap) in bprm_caps_from_vfs_caps() argument
541 *has_fcap = true; in bprm_caps_from_vfs_caps()
650 static int get_file_caps(struct linux_binprm *bprm, bool *effective, bool *has_fcap) in get_file_caps() argument
681 rc = bprm_caps_from_vfs_caps(&vcaps, bprm, effective, has_fcap); in get_file_caps()
713 static void handle_privileged_root(struct linux_binprm *bprm, bool has_fcap, in handle_privileged_root() argument
726 if (has_fcap && __is_suid(root_uid, new)) { in handle_privileged_root()
778 kuid_t root, bool has_fcap) in nonroot_raised_pE() argument
790 ((has_fcap && in nonroot_raised_pE()
811 bool effective = false, has_fcap = false, is_setid; in cap_bprm_set_creds() local
818 ret = get_file_caps(bprm, &effective, &has_fcap); in cap_bprm_set_creds()
824 handle_privileged_root(bprm, has_fcap, &effective, root_uid); in cap_bprm_set_creds()
854 if (has_fcap || is_setid) in cap_bprm_set_creds()
875 if (nonroot_raised_pE(new, old, root_uid, has_fcap)) { in cap_bprm_set_creds()