diff options
| author | Trond Myklebust <trond.myklebust@fys.uio.no> | 2003-07-03 22:06:06 -0700 |
|---|---|---|
| committer | Trond Myklebust <trond.myklebust@fys.uio.no> | 2003-07-03 22:06:06 -0700 |
| commit | fc8b427ef827733152f3e9d9e8b61ac7d69e06a5 (patch) | |
| tree | 55165056333ffe3f7ba82ed124ab956ef437cba2 /fs/exec.c | |
| parent | 81523bf22b35bb51d40a4553c6e2591969ff40ad (diff) | |
[PATCH] Add open intent information to the 'struct nameidata'
- Add open intent information to the 'struct nameidata'.
- Pass the struct nameidata as an optional parameter to the
lookup() inode operation.
- Pass the struct nameidata as an optional parameter to the
d_revalidate() dentry operation.
- Make link_path_walk() set the LOOKUP_CONTINUE flag in nd->flags instead
of passing it as an extra parameter to d_revalidate().
- Make open_namei(), and sys_uselib() set the open()/create() intent
data.
Diffstat (limited to 'fs/exec.c')
| -rw-r--r-- | fs/exec.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/exec.c b/fs/exec.c index ef73cbeff536..68a64ee4b234 100644 --- a/fs/exec.c +++ b/fs/exec.c @@ -117,7 +117,8 @@ asmlinkage long sys_uselib(const char __user * library) struct nameidata nd; int error; - error = user_path_walk(library, &nd); + nd.intent.open.flags = O_RDONLY; + error = __user_walk(library, LOOKUP_FOLLOW|LOOKUP_OPEN, &nd); if (error) goto out; |
