diff options
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/auditsc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/auditsc.c b/kernel/auditsc.c index 7a074d65fff4..e7fe2b0d29b3 100644 --- a/kernel/auditsc.c +++ b/kernel/auditsc.c | |||
@@ -308,7 +308,7 @@ static int audit_match_perm(struct audit_context *ctx, int mask) | |||
308 | static int audit_match_filetype(struct audit_context *ctx, int which) | 308 | static int audit_match_filetype(struct audit_context *ctx, int which) |
309 | { | 309 | { |
310 | unsigned index = which & ~S_IFMT; | 310 | unsigned index = which & ~S_IFMT; |
311 | mode_t mode = which & S_IFMT; | 311 | umode_t mode = which & S_IFMT; |
312 | 312 | ||
313 | if (unlikely(!ctx)) | 313 | if (unlikely(!ctx)) |
314 | return 0; | 314 | return 0; |
@@ -1502,7 +1502,7 @@ static void audit_log_exit(struct audit_context *context, struct task_struct *ts | |||
1502 | 1502 | ||
1503 | if (n->ino != (unsigned long)-1) { | 1503 | if (n->ino != (unsigned long)-1) { |
1504 | audit_log_format(ab, " inode=%lu" | 1504 | audit_log_format(ab, " inode=%lu" |
1505 | " dev=%02x:%02x mode=%#o" | 1505 | " dev=%02x:%02x mode=%#ho" |
1506 | " ouid=%u ogid=%u rdev=%02x:%02x", | 1506 | " ouid=%u ogid=%u rdev=%02x:%02x", |
1507 | n->ino, | 1507 | n->ino, |
1508 | MAJOR(n->dev), | 1508 | MAJOR(n->dev), |