lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <488529DC.2030504@gmail.com>
Date:	Mon, 21 Jul 2008 20:29:16 -0400
From:	roel kluin <roel.kluin@...il.com>
To:	viro@...iv.linux.org.uk
CC:	linux-kernel@...r.kernel.org
Subject: [PATCH 4/9] auditsc: test below 0 on unsigned ino

ino is unsigned so the test didn't work.

Signed-off-by: Roel Kluin <roel.kluin@...il.com>
---
diff --git a/kernel/auditsc.c b/kernel/auditsc.c
index c10e7aa..dc8e0a4 100644
--- a/kernel/auditsc.c
+++ b/kernel/auditsc.c
@@ -286,7 +286,7 @@ static int audit_match_filetype(struct audit_context *ctx, int which)
 	mode_t mode = which & S_IFMT;
 	if (index >= ctx->name_count)
 		return 0;
-	if (ctx->names[index].ino == -1)
+	if (ctx->names[index].ino == -1ul)
 		return 0;
 	if ((ctx->names[index].mode ^ mode) & S_IFMT)
 		return 0;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ