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
b3d47676
Commit
b3d47676
authored
Oct 20, 2008
by
J. Bruce Fields
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nfsd: update fh_verify description
Signed-off-by:
J. Bruce Fields
<
bfields@citi.umich.edu
>
parent
238c6d54
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
6 deletions
+24
-6
fs/nfsd/nfsfh.c
fs/nfsd/nfsfh.c
+24
-6
No files found.
fs/nfsd/nfsfh.c
View file @
b3d47676
...
@@ -258,14 +258,32 @@ out:
...
@@ -258,14 +258,32 @@ out:
return
error
;
return
error
;
}
}
/*
/**
* Perform sanity checks on the dentry in a client's file handle.
* fh_verify - filehandle lookup and access checking
* @rqstp: pointer to current rpc request
* @fhp: filehandle to be verified
* @type: expected type of object pointed to by filehandle
* @access: type of access needed to object
*
* Look up a dentry from the on-the-wire filehandle, check the client's
* access to the export, and set the current task's credentials.
*
* Regardless of success or failure of fh_verify(), fh_put() should be
* called on @fhp when the caller is finished with the filehandle.
*
* fh_verify() may be called multiple times on a given filehandle, for
* example, when processing an NFSv4 compound. The first call will look
* up a dentry using the on-the-wire filehandle. Subsequent calls will
* skip the lookup and just perform the other checks and possibly change
* the current task's credentials.
*
*
* Note that the file handle dentry may need to be freed even after
* @type specifies the type of object expected using one of the S_IF*
* an error return.
* constants defined in include/linux/stat.h. The caller may use zero
* to indicate that it doesn't care, or a negative integer to indicate
* that it expects something not of the given type.
*
*
*
This is only called at the start of an nfsproc call, so fhp points to
*
@access is formed from the NFSD_MAY_* constants defined in
*
a svc_fh which is all 0 except for the over-the-wire file handle
.
*
include/linux/nfsd/nfsd.h
.
*/
*/
__be32
__be32
fh_verify
(
struct
svc_rqst
*
rqstp
,
struct
svc_fh
*
fhp
,
int
type
,
int
access
)
fh_verify
(
struct
svc_rqst
*
rqstp
,
struct
svc_fh
*
fhp
,
int
type
,
int
access
)
...
...
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