Lines Matching refs:bprm

2153 static int check_nnp_nosuid(const struct linux_binprm *bprm,  in check_nnp_nosuid()  argument
2157 int nnp = (bprm->unsafe & LSM_UNSAFE_NO_NEW_PRIVS); in check_nnp_nosuid()
2158 int nosuid = (bprm->file->f_path.mnt->mnt_flags & MNT_NOSUID); in check_nnp_nosuid()
2188 static int selinux_bprm_set_creds(struct linux_binprm *bprm) in selinux_bprm_set_creds() argument
2194 struct inode *inode = file_inode(bprm->file); in selinux_bprm_set_creds()
2197 rc = cap_bprm_set_creds(bprm); in selinux_bprm_set_creds()
2203 if (bprm->cred_prepared) in selinux_bprm_set_creds()
2207 new_tsec = bprm->cred->security; in selinux_bprm_set_creds()
2225 rc = check_nnp_nosuid(bprm, old_tsec, new_tsec); in selinux_bprm_set_creds()
2240 rc = check_nnp_nosuid(bprm, old_tsec, new_tsec); in selinux_bprm_set_creds()
2246 ad.u.path = bprm->file->f_path; in selinux_bprm_set_creds()
2266 if (bprm->unsafe & LSM_UNSAFE_SHARE) { in selinux_bprm_set_creds()
2276 if (bprm->unsafe & in selinux_bprm_set_creds()
2300 bprm->per_clear |= PER_CLEAR_ON_SETID; in selinux_bprm_set_creds()
2306 static int selinux_bprm_secureexec(struct linux_binprm *bprm) in selinux_bprm_secureexec() argument
2324 return (atsecure || cap_bprm_secureexec(bprm)); in selinux_bprm_secureexec()
2384 static void selinux_bprm_committing_creds(struct linux_binprm *bprm) in selinux_bprm_committing_creds() argument
2390 new_tsec = bprm->cred->security; in selinux_bprm_committing_creds()
2395 flush_unauthorized_files(bprm->cred, current->files); in selinux_bprm_committing_creds()
2429 static void selinux_bprm_committed_creds(struct linux_binprm *bprm) in selinux_bprm_committed_creds() argument