Skip to content
Snippets Groups Projects
Commit ce0896a5 authored by Yang Sheng's avatar Yang Sheng
Browse files

Branch b1_6

b=12652
i=shadow, johann

Add FMODE_EXEC flag to SLES10 SP1.
parent 9a9cd629
No related branches found
No related tags found
No related merge requests found
...@@ -18,6 +18,10 @@ tbd Sun Microsystems, Inc. ...@@ -18,6 +18,10 @@ tbd Sun Microsystems, Inc.
* RHEL 4 and RHEL 5/SLES 10 clients behaves differently on 'cd' to a * RHEL 4 and RHEL 5/SLES 10 clients behaves differently on 'cd' to a
removed cwd "./" (refer to Bugzilla 14399). removed cwd "./" (refer to Bugzilla 14399).
Severity : normal
Bugzilla : 12652
Description: Add FMODE_EXEC to SLES10 SP1 series.
Severity : enhancement Severity : enhancement
Bugzilla : 13397 Bugzilla : 13397
Description: Add server support for vanilla-2.6.22.14. Description: Add server support for vanilla-2.6.22.14.
......
Index: LINUX-SRC-TREE/include/linux/fs.h
===================================================================
--- LINUX-SRC-TREE.orig/include/linux/fs.h
+++ LINUX-SRC-TREE/include/linux/fs.h
@@ -61,6 +61,7 @@ extern int dir_notify_enable;
#define FMODE_READ 1
#define FMODE_WRITE 2
+#define FMODE_EXEC 16
/* Internal kernel extensions */
#define FMODE_LSEEK 4
Index: LINUX-SRC-TREE/fs/exec.c
===================================================================
--- LINUX-SRC-TREE.orig/fs/exec.c
+++ LINUX-SRC-TREE/fs/exec.c
@@ -129,7 +129,8 @@ asmlinkage long sys_uselib(const char __
struct nameidata nd;
int error;
- error = __user_path_lookup_open(library, LOOKUP_FOLLOW, &nd, FMODE_READ);
+ error = __user_path_lookup_open(library, LOOKUP_FOLLOW, &nd,
+ FMODE_READ | FMODE_EXEC);
if (error)
goto out;
@@ -481,7 +483,8 @@ struct file *open_exec(const char *name)
int err;
struct file *file;
- err = path_lookup_open(AT_FDCWD, name, LOOKUP_FOLLOW, &nd, FMODE_READ);
+ err = path_lookup_open(AT_FDCWD, name, LOOKUP_FOLLOW, &nd,
+ FMODE_READ | FMODE_EXEC);
file = ERR_PTR(err);
if (!err) {
...@@ -11,3 +11,4 @@ blkdev_tunables-2.6-sles10.patch ...@@ -11,3 +11,4 @@ blkdev_tunables-2.6-sles10.patch
jbd-stats-2.6-sles10.patch jbd-stats-2.6-sles10.patch
i_filter_data.patch i_filter_data.patch
quota-fix-oops-in-invalidate_dquots.patch quota-fix-oops-in-invalidate_dquots.patch
fmode-exec-2.6-sles10.patch
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment