]> git.baikalelectronics.ru Git - kernel.git/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)
commit4b6a32c070fe6aac6b1097a337fd66e8a792b9f4
tree21905e7bc082235cef46df9342d19a871e6b90f5
parent5f1e34d299ea4ba23fb2557b8d35a5c36551aa54
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