From: Chris Wright Date: Tue, 1 Mar 2005 03:48:10 +0000 (-0800) Subject: [PATCH] fix audit inode filter X-Git-Tag: v2.6.11~8 X-Git-Url: http://git.neil.brown.name/?a=commitdiff_plain;h=aae94db3e7d8be66f54cbde432d37bd3c22374d1;p=history.git [PATCH] fix audit inode filter Audit inode filter drops high bits on inode number by cut 'n paste mistake. Signed-off-by: Chris Wright Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/kernel/auditsc.c b/kernel/auditsc.c index c412d6779733..3435b71d809c 100644 --- a/kernel/auditsc.c +++ b/kernel/auditsc.c @@ -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; }