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
8db01856
Commit
8db01856
authored
Mar 25, 2016
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
apparmor: remove useless checks for NULL ->mnt
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
d3607752
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
security/apparmor/lsm.c
security/apparmor/lsm.c
+2
-2
No files found.
security/apparmor/lsm.c
View file @
8db01856
...
...
@@ -215,7 +215,7 @@ static int common_perm_rm(int op, const struct path *dir,
struct
inode
*
inode
=
d_backing_inode
(
dentry
);
struct
path_cond
cond
=
{
};
if
(
!
inode
||
!
dir
->
mnt
||
!
mediated_filesystem
(
dentry
))
if
(
!
inode
||
!
mediated_filesystem
(
dentry
))
return
0
;
cond
.
uid
=
inode
->
i_uid
;
...
...
@@ -239,7 +239,7 @@ static int common_perm_create(int op, const struct path *dir,
{
struct
path_cond
cond
=
{
current_fsuid
(),
mode
};
if
(
!
dir
->
mnt
||
!
mediated_filesystem
(
dir
->
dentry
))
if
(
!
mediated_filesystem
(
dir
->
dentry
))
return
0
;
return
common_perm_dir_dentry
(
op
,
dir
,
dentry
,
mask
,
&
cond
);
...
...
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