[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[PATCH] fix inode filtering



Inode filter needs to check for .ino, instead of checking for .pino
twice.

(Must have been a merge error somewhere.)


Signed-off-by: Amy Griffis <amy griffis hp com>

diff --git a/kernel/auditsc.c b/kernel/auditsc.c
--- a/kernel/auditsc.c
+++ b/kernel/auditsc.c
@@ -527,7 +527,7 @@ static int audit_filter_rules(struct tas
 		case AUDIT_INODE:
 			if (ctx) {
 				for (j = 0; j < ctx->name_count; j++) {
-					if (audit_comparator(ctx->names[j].pino, op, value) ||
+					if (audit_comparator(ctx->names[j].ino, op, value) ||
 					    audit_comparator(ctx->names[j].pino, op, value)) {
 						++result;
 						break;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]