]> Pileus Git - ~andy/linux/commit
SELinux: do all flags twiddling in one place
authorEric Paris <eparis@redhat.com>
Fri, 24 Aug 2012 19:59:14 +0000 (15:59 -0400)
committerEric Paris <eparis@redhat.com>
Thu, 25 Jul 2013 17:03:03 +0000 (13:03 -0400)
commiteadcabc697e904e0d93d10070a324d8855740b91
tree21905e7bc082235cef46df9342d19a871e6b90f5
parent12f348b9dcf6d9616c86a049c3c8700f9dc0af55
SELinux: do all flags twiddling in one place

Currently we set the initialize and seclabel flag in one place.  Do some
unrelated printk then we unset the seclabel flag.  Eww.  Instead do the flag
twiddling in one place in the code not seperated by unrelated printk.  Also
don't set and unset the seclabel flag.  Only set it if we need to.

Signed-off-by: Eric Paris <eparis@redhat.com>
security/selinux/hooks.c