1 Index: LINUX-SRC-TREE/include/linux/fs.h
2 ===================================================================
3 --- LINUX-SRC-TREE.orig/include/linux/fs.h
4 +++ LINUX-SRC-TREE/include/linux/fs.h
5 @@ -61,6 +61,7 @@ extern int dir_notify_enable;
11 /* Internal kernel extensions */
13 Index: LINUX-SRC-TREE/fs/exec.c
14 ===================================================================
15 --- LINUX-SRC-TREE.orig/fs/exec.c
16 +++ LINUX-SRC-TREE/fs/exec.c
17 @@ -129,7 +129,8 @@ asmlinkage long sys_uselib(const char __
21 - error = __user_path_lookup_open(library, LOOKUP_FOLLOW, &nd, FMODE_READ);
22 + error = __user_path_lookup_open(library, LOOKUP_FOLLOW, &nd,
23 + FMODE_READ | FMODE_EXEC);
27 @@ -481,7 +483,8 @@ struct file *open_exec(const char *name)
31 - err = path_lookup_open(AT_FDCWD, name, LOOKUP_FOLLOW, &nd, FMODE_READ);
32 + err = path_lookup_open(AT_FDCWD, name, LOOKUP_FOLLOW, &nd,
33 + FMODE_READ | FMODE_EXEC);