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
cf1dd1da
Commit
cf1dd1da
authored
Jun 20, 2011
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
selinux: don't transliterate MAY_NOT_BLOCK to IPERM_FLAG_RCU
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
e74f71eb
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
security/selinux/avc.c
security/selinux/avc.c
+1
-1
security/selinux/hooks.c
security/selinux/hooks.c
+2
-2
No files found.
security/selinux/avc.c
View file @
cf1dd1da
...
...
@@ -527,7 +527,7 @@ int avc_audit(u32 ssid, u32 tsid,
* happened a little later.
*/
if
((
a
->
type
==
LSM_AUDIT_DATA_INODE
)
&&
(
flags
&
IPERM_FLAG_RCU
))
(
flags
&
MAY_NOT_BLOCK
))
return
-
ECHILD
;
a
->
selinux_audit_data
.
tclass
=
tclass
;
...
...
security/selinux/hooks.c
View file @
cf1dd1da
...
...
@@ -2665,7 +2665,7 @@ static int selinux_inode_permission(struct inode *inode, int mask)
struct
common_audit_data
ad
;
u32
perms
;
bool
from_access
;
unsigned
__flags
=
mask
&
MAY_NOT_BLOCK
?
IPERM_FLAG_RCU
:
0
;
unsigned
flags
=
mask
&
MAY_NOT_BLOCK
;
from_access
=
mask
&
MAY_ACCESS
;
mask
&=
(
MAY_READ
|
MAY_WRITE
|
MAY_EXEC
|
MAY_APPEND
);
...
...
@@ -2682,7 +2682,7 @@ static int selinux_inode_permission(struct inode *inode, int mask)
perms
=
file_mask_to_av
(
inode
->
i_mode
,
mask
);
return
inode_has_perm
(
cred
,
inode
,
perms
,
&
ad
,
__
flags
);
return
inode_has_perm
(
cred
,
inode
,
perms
,
&
ad
,
flags
);
}
static
int
selinux_inode_setattr
(
struct
dentry
*
dentry
,
struct
iattr
*
iattr
)
...
...
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