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
Kirill Smelkov
linux
Commits
e9193288
Commit
e9193288
authored
Apr 24, 2018
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
__inode_security_revalidate() never gets NULL opt_dentry
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
2220c5b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
security/selinux/hooks.c
security/selinux/hooks.c
+3
-4
No files found.
security/selinux/hooks.c
View file @
e9193288
...
@@ -274,11 +274,10 @@ static int inode_doinit_with_dentry(struct inode *inode, struct dentry *opt_dent
...
@@ -274,11 +274,10 @@ static int inode_doinit_with_dentry(struct inode *inode, struct dentry *opt_dent
* Try reloading inode security labels that have been marked as invalid. The
* Try reloading inode security labels that have been marked as invalid. The
* @may_sleep parameter indicates when sleeping and thus reloading labels is
* @may_sleep parameter indicates when sleeping and thus reloading labels is
* allowed; when set to false, returns -ECHILD when the label is
* allowed; when set to false, returns -ECHILD when the label is
* invalid. The @opt_dentry parameter should be set to a dentry of the inode;
* invalid. The @dentry parameter should be set to a dentry of the inode.
* when no dentry is available, set it to NULL instead.
*/
*/
static
int
__inode_security_revalidate
(
struct
inode
*
inode
,
static
int
__inode_security_revalidate
(
struct
inode
*
inode
,
struct
dentry
*
opt_
dentry
,
struct
dentry
*
dentry
,
bool
may_sleep
)
bool
may_sleep
)
{
{
struct
inode_security_struct
*
isec
=
inode
->
i_security
;
struct
inode_security_struct
*
isec
=
inode
->
i_security
;
...
@@ -295,7 +294,7 @@ static int __inode_security_revalidate(struct inode *inode,
...
@@ -295,7 +294,7 @@ static int __inode_security_revalidate(struct inode *inode,
* @opt_dentry is NULL and no dentry for this inode can be
* @opt_dentry is NULL and no dentry for this inode can be
* found; in that case, continue using the old label.
* found; in that case, continue using the old label.
*/
*/
inode_doinit_with_dentry
(
inode
,
opt_
dentry
);
inode_doinit_with_dentry
(
inode
,
dentry
);
}
}
return
0
;
return
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