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
acb2cfdb
Commit
acb2cfdb
authored
Jan 14, 2016
by
James Morris
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'upstream' of
git://git.infradead.org/users/pcmoore/selinux
into next
parents
607259e1
b197367e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
8 deletions
+2
-8
security/selinux/hooks.c
security/selinux/hooks.c
+2
-8
No files found.
security/selinux/hooks.c
View file @
acb2cfdb
...
...
@@ -273,11 +273,6 @@ static int __inode_security_revalidate(struct inode *inode,
return
0
;
}
static
void
inode_security_revalidate
(
struct
inode
*
inode
)
{
__inode_security_revalidate
(
inode
,
NULL
,
true
);
}
static
struct
inode_security_struct
*
inode_security_novalidate
(
struct
inode
*
inode
)
{
return
inode
->
i_security
;
...
...
@@ -3277,19 +3272,19 @@ static int selinux_file_permission(struct file *file, int mask)
{
struct
inode
*
inode
=
file_inode
(
file
);
struct
file_security_struct
*
fsec
=
file
->
f_security
;
struct
inode_security_struct
*
isec
=
inode_security
(
inode
)
;
struct
inode_security_struct
*
isec
;
u32
sid
=
current_sid
();
if
(
!
mask
)
/* No permission to check. Existence test. */
return
0
;
isec
=
inode_security
(
inode
);
if
(
sid
==
fsec
->
sid
&&
fsec
->
isid
==
isec
->
sid
&&
fsec
->
pseqno
==
avc_policy_seqno
())
/* No change since file_open check. */
return
0
;
inode_security_revalidate
(
inode
);
return
selinux_revalidate_file_permission
(
file
,
mask
);
}
...
...
@@ -3595,7 +3590,6 @@ static int selinux_file_open(struct file *file, const struct cred *cred)
* new inode label or new policy.
* This check is not redundant - do not remove.
*/
inode_security_revalidate
(
file_inode
(
file
));
return
file_path_has_perm
(
cred
,
file
,
open_file_to_av
(
file
));
}
...
...
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