diff options
Diffstat (limited to 'kernel/auditsc.c')
-rw-r--r-- | kernel/auditsc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/auditsc.c b/kernel/auditsc.c index b14d234b85f3..0b862cac6ca2 100644 --- a/kernel/auditsc.c +++ b/kernel/auditsc.c | |||
@@ -548,9 +548,9 @@ static int audit_filter_rules(struct task_struct *tsk, | |||
548 | } | 548 | } |
549 | break; | 549 | break; |
550 | case AUDIT_WATCH: | 550 | case AUDIT_WATCH: |
551 | if (name && rule->watch->ino != (unsigned long)-1) | 551 | if (name && audit_watch_inode(rule->watch) != (unsigned long)-1) |
552 | result = (name->dev == rule->watch->dev && | 552 | result = (name->dev == audit_watch_dev(rule->watch) && |
553 | name->ino == rule->watch->ino); | 553 | name->ino == audit_watch_inode(rule->watch)); |
554 | break; | 554 | break; |
555 | case AUDIT_DIR: | 555 | case AUDIT_DIR: |
556 | if (ctx) | 556 | if (ctx) |