mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
don't carry MAY_OPEN in op->acc_mode
Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
b40ef8696f
commit
62fb4a155f
3 changed files with 12 additions and 18 deletions
|
|
@ -119,7 +119,7 @@ SYSCALL_DEFINE1(uselib, const char __user *, library)
|
|||
int error = PTR_ERR(tmp);
|
||||
static const struct open_flags uselib_flags = {
|
||||
.open_flag = O_LARGEFILE | O_RDONLY | __FMODE_EXEC,
|
||||
.acc_mode = MAY_READ | MAY_EXEC | MAY_OPEN,
|
||||
.acc_mode = MAY_READ | MAY_EXEC,
|
||||
.intent = LOOKUP_OPEN,
|
||||
.lookup_flags = LOOKUP_FOLLOW,
|
||||
};
|
||||
|
|
@ -763,7 +763,7 @@ static struct file *do_open_execat(int fd, struct filename *name, int flags)
|
|||
int err;
|
||||
struct open_flags open_exec_flags = {
|
||||
.open_flag = O_LARGEFILE | O_RDONLY | __FMODE_EXEC,
|
||||
.acc_mode = MAY_EXEC | MAY_OPEN,
|
||||
.acc_mode = MAY_EXEC,
|
||||
.intent = LOOKUP_OPEN,
|
||||
.lookup_flags = LOOKUP_FOLLOW,
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue