diff options
Diffstat (limited to 'security/selinux/hooks.c')
-rw-r--r-- | security/selinux/hooks.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index f0e36c3492ba..7f6068489a02 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c | |||
@@ -2982,7 +2982,9 @@ static int selinux_inode_permission(struct inode *inode, int mask) | |||
2982 | return PTR_ERR(isec); | 2982 | return PTR_ERR(isec); |
2983 | 2983 | ||
2984 | rc = avc_has_perm_noaudit(&selinux_state, | 2984 | rc = avc_has_perm_noaudit(&selinux_state, |
2985 | sid, isec->sid, isec->sclass, perms, 0, &avd); | 2985 | sid, isec->sid, isec->sclass, perms, |
2986 | (flags & MAY_NOT_BLOCK) ? AVC_NONBLOCKING : 0, | ||
2987 | &avd); | ||
2986 | audited = avc_audit_required(perms, &avd, rc, | 2988 | audited = avc_audit_required(perms, &avd, rc, |
2987 | from_access ? FILE__AUDIT_ACCESS : 0, | 2989 | from_access ? FILE__AUDIT_ACCESS : 0, |
2988 | &denied); | 2990 | &denied); |