summaryrefslogtreecommitdiffstats
path: root/fs/binfmt_em86.c
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2015-02-10 20:35:36 +0100
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2015-02-10 20:35:36 +0100
commit4ba24fef3eb3b142197135223b90ced2f319cd53 (patch)
treea20c125b27740ec7b4c761b11d801108e1b316b2 /fs/binfmt_em86.c
parentInput: elantech - add more Fujtisu notebooks to force crc_enabled (diff)
parentInput: elan_i2c - fix wrong %p extension (diff)
downloadlinux-4ba24fef3eb3b142197135223b90ced2f319cd53.tar.xz
linux-4ba24fef3eb3b142197135223b90ced2f319cd53.zip
Merge branch 'next' into for-linus
Prepare first round of input updates for 3.20.
Diffstat (limited to '')
-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)
return -ENOEXEC;
}
+ /* Need to be able to load the file after exec */
+ if (bprm->interp_flags & BINPRM_FLAGS_PATH_INACCESSIBLE)
+ return -ENOENT;
+
allow_write_access(bprm->file);
fput(bprm->file);
bprm->file = NULL;