Lines Matching refs:bprm
2297 static int check_nnp_nosuid(const struct linux_binprm *bprm, in check_nnp_nosuid() argument
2301 int nnp = (bprm->unsafe & LSM_UNSAFE_NO_NEW_PRIVS); in check_nnp_nosuid()
2302 int nosuid = !mnt_may_suid(bprm->file->f_path.mnt); in check_nnp_nosuid()
2351 static int selinux_bprm_creds_for_exec(struct linux_binprm *bprm) in selinux_bprm_creds_for_exec() argument
2357 struct inode *inode = file_inode(bprm->file); in selinux_bprm_creds_for_exec()
2364 new_tsec = selinux_cred(bprm->cred); in selinux_bprm_creds_for_exec()
2382 rc = check_nnp_nosuid(bprm, old_tsec, new_tsec); in selinux_bprm_creds_for_exec()
2397 rc = check_nnp_nosuid(bprm, old_tsec, new_tsec); in selinux_bprm_creds_for_exec()
2403 ad.u.file = bprm->file; in selinux_bprm_creds_for_exec()
2426 if (bprm->unsafe & LSM_UNSAFE_SHARE) { in selinux_bprm_creds_for_exec()
2437 if (bprm->unsafe & LSM_UNSAFE_PTRACE) { in selinux_bprm_creds_for_exec()
2450 bprm->per_clear |= PER_CLEAR_ON_SETID; in selinux_bprm_creds_for_exec()
2459 bprm->secureexec |= !!rc; in selinux_bprm_creds_for_exec()
2522 static void selinux_bprm_committing_creds(struct linux_binprm *bprm) in selinux_bprm_committing_creds() argument
2528 new_tsec = selinux_cred(bprm->cred); in selinux_bprm_committing_creds()
2533 flush_unauthorized_files(bprm->cred, current->files); in selinux_bprm_committing_creds()
2569 static void selinux_bprm_committed_creds(struct linux_binprm *bprm) in selinux_bprm_committed_creds() argument