From: Eric Paris Date: Fri, 20 Nov 2009 16:00:12 +0000 (-0500) Subject: SELinux: header generation may hit infinite loop X-Git-Tag: v2.6.33-rc1~411^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=85c3b529f8ad4d65ba86b982ef050212ae7dd976;p=pandora-kernel.git SELinux: header generation may hit infinite loop If a permission name is long enough the selinux class definition generation tool will go into a infinite loop. This is because it's macro max() is fooled into thinking it is dealing with unsigned numbers. This patch makes sure the macro always uses signed number so 1 > -1. Signed-off-by: Eric Paris Signed-off-by: James Morris --- Reading git-diff-tree failed