]> Pileus Git - ~andy/linux/commit
selinux: fix problems in netnode when BUG() is compiled out
authorPaul Moore <pmoore@redhat.com>
Tue, 23 Jul 2013 21:38:38 +0000 (17:38 -0400)
committerEric Paris <eparis@redhat.com>
Thu, 25 Jul 2013 17:03:27 +0000 (13:03 -0400)
commitb04eea886409de7460b5727b5931fb0bd417275f
tree3be19b6275c41fc53aad1e1842723e43245a78b2
parentb43e725d8d386bf2092473953b525aaae71b6c28
selinux: fix problems in netnode when BUG() is compiled out

When the BUG() macro is disabled at compile time it can cause some
problems in the SELinux netnode code: invalid return codes and
uninitialized variables.  This patch fixes this by making sure we take
some corrective action after the BUG() macro.

Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Paul Moore <pmoore@redhat.com>
Signed-off-by: Eric Paris <eparis@redhat.com>
security/selinux/netnode.c