2 include/linux/fs.h | 1 +
3 2 files changed, 3 insertions(+), 2 deletions(-)
5 --- linus-2.6.7-bk-latest/include/linux/fs.h.orig 2004-07-07 12:33:21.246507224 +0300
6 +++ linus-2.6.7-bk-latest/include/linux/fs.h 2004-07-07 12:33:55.069365368 +0300
7 @@ -74,6 +74,7 @@ extern int leases_enable, dir_notify_ena
15 --- linus-2.6.7-bk-latest/fs/exec.c.orig 2004-07-07 12:33:05.466906088 +0300
16 +++ linus-2.6.7-bk-latest/fs/exec.c 2004-07-07 12:33:38.127940856 +0300
17 @@ -122,7 +122,7 @@ asmlinkage long sys_uselib(const char __
20 intent_init(&nd.intent.open, IT_OPEN);
21 - nd.intent.open.flags = FMODE_READ;
22 + nd.intent.open.flags = FMODE_READ|FMODE_EXEC;
23 error = user_path_walk_it(library, &nd);
26 @@ -476,7 +476,7 @@ struct file *open_exec(const char *name)
29 intent_init(&nd.intent.open, IT_OPEN);
30 - nd.intent.open.flags = FMODE_READ;
31 + nd.intent.open.flags = FMODE_READ|FMODE_EXEC;
32 err = path_lookup_it(name, LOOKUP_FOLLOW, &nd);