Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
1e41568d
Commit
1e41568d
authored
Jan 26, 2010
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Take ima_path_check() in nfsd past dentry_open() in nfsd_open()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
4b06e5b9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
fs/nfsd/vfs.c
fs/nfsd/vfs.c
+2
-1
No files found.
fs/nfsd/vfs.c
View file @
1e41568d
...
...
@@ -752,6 +752,8 @@ nfsd_open(struct svc_rqst *rqstp, struct svc_fh *fhp, int type,
flags
,
current_cred
());
if
(
IS_ERR
(
*
filp
))
host_err
=
PTR_ERR
(
*
filp
);
host_err
=
ima_path_check
(
&
(
*
filp
)
->
f_path
,
access
&
(
MAY_READ
|
MAY_WRITE
|
MAY_EXEC
));
out_nfserr:
err
=
nfserrno
(
host_err
);
out:
...
...
@@ -2127,7 +2129,6 @@ nfsd_permission(struct svc_rqst *rqstp, struct svc_export *exp,
*/
path
.
mnt
=
exp
->
ex_path
.
mnt
;
path
.
dentry
=
dentry
;
err
=
ima_path_check
(
&
path
,
acc
&
(
MAY_READ
|
MAY_WRITE
|
MAY_EXEC
));
nfsd_out:
return
err
?
nfserrno
(
err
)
:
0
;
}
...
...
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