summaryrefslogtreecommitdiffstats
path: root/fs/binfmt_em86.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/binfmt_em86.c')
-rw-r--r--fs/binfmt_em86.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/binfmt_em86.c b/fs/binfmt_em86.c
index f37b08cea1f7..490538536cb4 100644
--- a/fs/binfmt_em86.c
+++ b/fs/binfmt_em86.c
@@ -42,6 +42,10 @@ static int load_em86(struct linux_binprm *bprm)
42 return -ENOEXEC; 42 return -ENOEXEC;
43 } 43 }
44 44
45 /* Need to be able to load the file after exec */
46 if (bprm->interp_flags & BINPRM_FLAGS_PATH_INACCESSIBLE)
47 return -ENOENT;
48
45 allow_write_access(bprm->file); 49 allow_write_access(bprm->file);
46 fput(bprm->file); 50 fput(bprm->file);
47 bprm->file = NULL; 51 bprm->file = NULL;