Lines Matching refs:bprm
587 struct linux_binprm *bprm,
591 struct cred *new = bprm->cred;
723 static int get_file_caps(struct linux_binprm *bprm, struct file *file,
729 cap_clear(bprm->cred->cap_permitted);
750 bprm->filename);
756 rc = bprm_caps_from_vfs_caps(&vcaps, bprm, effective, has_fcap);
760 cap_clear(bprm->cred->cap_permitted);
778 * @bprm: The execution parameters, including the proposed creds
788 static void handle_privileged_root(struct linux_binprm *bprm, bool has_fcap,
792 struct cred *new = bprm->cred;
802 warn_setuid_and_fcaps_mixed(bprm->filename);
876 * @bprm: The execution parameters, including the proposed creds
880 * constructed by execve(). The proposed creds in @bprm->cred is altered,
885 int cap_bprm_creds_from_file(struct linux_binprm *bprm, struct file *file)
889 struct cred *new = bprm->cred;
897 ret = get_file_caps(bprm, file, &effective, &has_fcap);
903 handle_privileged_root(bprm, has_fcap, &effective, root_uid);
907 bprm->per_clear |= PER_CLEAR_ON_SETID;
917 ((bprm->unsafe & ~LSM_UNSAFE_PTRACE) ||
921 (bprm->unsafe & LSM_UNSAFE_NO_NEW_PRIVS)) {
955 ret = audit_log_bprm_fcaps(bprm, new, old);
970 bprm->secureexec = 1;