SELinux: header generation may hit infinite loop
authorEric Paris <eparis@redhat.com>
Fri, 20 Nov 2009 16:00:12 +0000 (11:00 -0500)
committerJames Morris <jmorris@namei.org>
Sun, 22 Nov 2009 22:00:44 +0000 (09:00 +1100)
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 <eparis@redhat.com>
Signed-off-by: James Morris <jmorris@namei.org>

No differences found
This page took 0.026337 seconds and 5 git commands to generate.