commit | 85c3b529f8ad4d65ba86b982ef050212ae7dd976 | [log] [tgz] |
---|---|---|
author | Eric Paris <eparis@redhat.com> | Fri Nov 20 11:00:12 2009 -0500 |
committer | James Morris <jmorris@namei.org> | Mon Nov 23 09:00:44 2009 +1100 |
tree | becd5d4d607faf5de3bf5d8470cacf715aef8f7a | |
parent | 821d35a56044e522e811f6a1e8632cc230360280 [diff] |
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 <eparis@redhat.com> Signed-off-by: James Morris <jmorris@namei.org>