audit: update AUDIT_INODE filter rule to comparator function
authorRichard Guy Briggs <rgb@redhat.com>
Thu, 4 Jul 2013 16:56:11 +0000 (12:56 -0400)
committerEric Paris <eparis@redhat.com>
Tue, 5 Nov 2013 16:08:24 +0000 (11:08 -0500)
It appears this one comparison function got missed in f368c07d (and 9c937dcc).

Signed-off-by: Richard Guy Briggs <rgb@redhat.com>
Signed-off-by: Eric Paris <eparis@redhat.com>
kernel/auditsc.c

index 63223d671a6ed0b7b433234de90886ff8392c048..065c7a14935e4aef4242ac2212ca70c2db8d5b7b 100644 (file)
@@ -566,7 +566,7 @@ static int audit_filter_rules(struct task_struct *tsk,
                        break;
                case AUDIT_INODE:
                        if (name)
-                               result = (name->ino == f->val);
+                               result = audit_comparator(name->ino, f->op, f->val);
                        else if (ctx) {
                                list_for_each_entry(n, &ctx->names_list, list) {
                                        if (audit_comparator(n->ino, f->op, f->val)) {