Lines Matching defs:bprm
2239 static int check_nnp_nosuid(const struct linux_binprm *bprm,
2243 int nnp = (bprm->unsafe & LSM_UNSAFE_NO_NEW_PRIVS);
2244 int nosuid = !mnt_may_suid(bprm->file->f_path.mnt);
2292 static int selinux_bprm_creds_for_exec(struct linux_binprm *bprm)
2298 struct inode *inode = file_inode(bprm->file);
2305 new_tsec = selinux_cred(bprm->cred);
2323 rc = check_nnp_nosuid(bprm, old_tsec, new_tsec);
2338 rc = check_nnp_nosuid(bprm, old_tsec, new_tsec);
2344 ad.u.file = bprm->file;
2364 if (bprm->unsafe & LSM_UNSAFE_SHARE) {
2374 if (bprm->unsafe & LSM_UNSAFE_PTRACE) {
2386 bprm->per_clear |= PER_CLEAR_ON_SETID;
2394 bprm->secureexec |= !!rc;
2457 static void selinux_bprm_committing_creds(struct linux_binprm *bprm)
2463 new_tsec = selinux_cred(bprm->cred);
2468 flush_unauthorized_files(bprm->cred, current->files);
2503 static void selinux_bprm_committed_creds(struct linux_binprm *bprm)