Whamcloud - gitweb
- highmem-split-2.6.10-fc3.patch in order to make 3GB memory on mountain's
[fs/lustre-release.git] / lustre / kernel_patches / patches / vfs_fmode_exec-2.6.patch
1  fs/exec.c          |    4 ++--
2  include/linux/fs.h |    1 +
3  2 files changed, 3 insertions(+), 2 deletions(-)
4
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
8  
9  #define FMODE_READ 1
10  #define FMODE_WRITE 2
11 +#define FMODE_EXEC 4
12  
13  #define RW_MASK                1
14  #define RWA_MASK       2
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 __
18         int error;
19  
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);
24         if (error)
25                 goto out;
26 @@ -476,7 +476,7 @@ struct file *open_exec(const char *name)
27         struct file *file;
28  
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);
33         file = ERR_PTR(err);
34