summaryrefslogtreecommitdiffstats
path: root/fs/open.c
diff options
context:
space:
mode:
authorEric Paris <eparis@redhat.com>2009-11-20 17:00:12 +0100
committerJames Morris <jmorris@namei.org>2009-11-22 23:00:44 +0100
commit85c3b529f8ad4d65ba86b982ef050212ae7dd976 (patch)
treebecd5d4d607faf5de3bf5d8470cacf715aef8f7a /fs/open.c
parentselinux: Fix warnings (diff)
downloadlinux-85c3b529f8ad4d65ba86b982ef050212ae7dd976.tar.xz
linux-85c3b529f8ad4d65ba86b982ef050212ae7dd976.zip
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>
Diffstat (limited to 'fs/open.c')
0 files changed, 0 insertions, 0 deletions