diff options
Diffstat (limited to 'security/selinux/avc.c')
-rw-r--r-- | security/selinux/avc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/selinux/avc.c b/security/selinux/avc.c index 18f4103e02b7..f2dde268165a 100644 --- a/security/selinux/avc.c +++ b/security/selinux/avc.c | |||
@@ -117,7 +117,7 @@ static void avc_dump_av(struct audit_buffer *ab, u16 tclass, u32 av) | |||
117 | i = 0; | 117 | i = 0; |
118 | perm = 1; | 118 | perm = 1; |
119 | while (i < (sizeof(av) * 8)) { | 119 | while (i < (sizeof(av) * 8)) { |
120 | if (perm & av) { | 120 | if ((perm & av) && perms[i]) { |
121 | audit_log_format(ab, " %s", perms[i]); | 121 | audit_log_format(ab, " %s", perms[i]); |
122 | av &= ~perm; | 122 | av &= ~perm; |
123 | } | 123 | } |