Lines Matching defs:bprm
2248 static int check_nnp_nosuid(const struct linux_binprm *bprm,
2252 int nnp = (bprm->unsafe & LSM_UNSAFE_NO_NEW_PRIVS);
2253 int nosuid = !mnt_may_suid(bprm->file->f_path.mnt);
2302 static int selinux_bprm_creds_for_exec(struct linux_binprm *bprm)
2308 struct inode *inode = file_inode(bprm->file);
2315 new_tsec = selinux_cred(bprm->cred);
2333 rc = check_nnp_nosuid(bprm, old_tsec, new_tsec);
2348 rc = check_nnp_nosuid(bprm, old_tsec, new_tsec);
2354 ad.u.file = bprm->file;
2377 if (bprm->unsafe & LSM_UNSAFE_SHARE) {
2388 if (bprm->unsafe & LSM_UNSAFE_PTRACE) {
2401 bprm->per_clear |= PER_CLEAR_ON_SETID;
2410 bprm->secureexec |= !!rc;
2473 static void selinux_bprm_committing_creds(struct linux_binprm *bprm)
2479 new_tsec = selinux_cred(bprm->cred);
2484 flush_unauthorized_files(bprm->cred, current->files);
2520 static void selinux_bprm_committed_creds(struct linux_binprm *bprm)