Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
672b16b2
Commit
672b16b2
authored
Jul 17, 2008
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] more nameidata removal: exec_permission_lite() doesn't need it
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
b77b0646
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
fs/namei.c
fs/namei.c
+2
-3
No files found.
fs/namei.c
View file @
672b16b2
...
...
@@ -460,8 +460,7 @@ static struct dentry * cached_lookup(struct dentry * parent, struct qstr * name,
* short-cut DAC fails, then call permission() to do more
* complete permission check.
*/
static
int
exec_permission_lite
(
struct
inode
*
inode
,
struct
nameidata
*
nd
)
static
int
exec_permission_lite
(
struct
inode
*
inode
)
{
umode_t
mode
=
inode
->
i_mode
;
...
...
@@ -884,7 +883,7 @@ static int __link_path_walk(const char *name, struct nameidata *nd)
unsigned
int
c
;
nd
->
flags
|=
LOOKUP_CONTINUE
;
err
=
exec_permission_lite
(
inode
,
nd
);
err
=
exec_permission_lite
(
inode
);
if
(
err
==
-
EAGAIN
)
err
=
vfs_permission
(
nd
,
MAY_EXEC
);
if
(
err
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment