]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] fix audit inode filter
authorChris Wright <chrisw@osdl.org>
Tue, 1 Mar 2005 03:48:10 +0000 (19:48 -0800)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Tue, 1 Mar 2005 03:48:10 +0000 (19:48 -0800)
Audit inode filter drops high bits on inode number by cut 'n paste mistake.

Signed-off-by: Chris Wright <chrisw@osdl.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
kernel/auditsc.c

index c412d6779733a0929b74000b0394735128b5ebf0..3435b71d809ccc471208c4b41e1f445ef5fc86b1 100644 (file)
@@ -358,7 +358,7 @@ static int audit_filter_rules(struct task_struct *tsk,
                case AUDIT_INODE:
                        if (ctx) {
                                for (j = 0; j < ctx->name_count; j++) {
-                                       if (MINOR(ctx->names[j].ino)==value) {
+                                       if (ctx->names[j].ino == value) {
                                                ++result;
                                                break;
                                        }