projects
/
platform
/
kernel
/
linux-exynos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
syscalls: implement execveat() system call
[platform/kernel/linux-exynos.git]
/
fs
/
binfmt_em86.c
diff --git
a/fs/binfmt_em86.c
b/fs/binfmt_em86.c
index
f37b08c
..
4905385
100644
(file)
--- 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;