Lines Matching refs:bprm
2169 static int check_nnp_nosuid(const struct linux_binprm *bprm, in check_nnp_nosuid() argument
2173 int nnp = (bprm->unsafe & LSM_UNSAFE_NO_NEW_PRIVS); in check_nnp_nosuid()
2174 int nosuid = (bprm->file->f_path.mnt->mnt_flags & MNT_NOSUID); in check_nnp_nosuid()
2204 static int selinux_bprm_set_creds(struct linux_binprm *bprm) in selinux_bprm_set_creds() argument
2210 struct inode *inode = file_inode(bprm->file); in selinux_bprm_set_creds()
2215 if (bprm->cred_prepared) in selinux_bprm_set_creds()
2219 new_tsec = bprm->cred->security; in selinux_bprm_set_creds()
2237 rc = check_nnp_nosuid(bprm, old_tsec, new_tsec); in selinux_bprm_set_creds()
2252 rc = check_nnp_nosuid(bprm, old_tsec, new_tsec); in selinux_bprm_set_creds()
2258 ad.u.path = bprm->file->f_path; in selinux_bprm_set_creds()
2278 if (bprm->unsafe & LSM_UNSAFE_SHARE) { in selinux_bprm_set_creds()
2288 if (bprm->unsafe & in selinux_bprm_set_creds()
2312 bprm->per_clear |= PER_CLEAR_ON_SETID; in selinux_bprm_set_creds()
2318 static int selinux_bprm_secureexec(struct linux_binprm *bprm) in selinux_bprm_secureexec() argument
2396 static void selinux_bprm_committing_creds(struct linux_binprm *bprm) in selinux_bprm_committing_creds() argument
2402 new_tsec = bprm->cred->security; in selinux_bprm_committing_creds()
2407 flush_unauthorized_files(bprm->cred, current->files); in selinux_bprm_committing_creds()
2441 static void selinux_bprm_committed_creds(struct linux_binprm *bprm) in selinux_bprm_committed_creds() argument