]> git.baikalelectronics.ru Git - kernel.git/commit
selinux: quiet the filesystem labeling behavior message
authorPaul Moore <pmoore@redhat.com>
Wed, 4 Feb 2015 16:34:30 +0000 (11:34 -0500)
committerPaul Moore <pmoore@redhat.com>
Wed, 4 Feb 2015 16:34:30 +0000 (11:34 -0500)
commitff64d9951a3cdbf65d93236ad2c22b982e3ea6b9
tree003e4c44737af4b55b22e3466743bf878b9f72d8
parent838e669cfb409653e8321e361d73375225784fbb
selinux: quiet the filesystem labeling behavior message

While the filesystem labeling method is only printed at the KERN_DEBUG
level, this still appears in dmesg and on modern Linux distributions
that create a lot of tmpfs mounts for session handling, the dmesg can
easily be filled with a lot of "SELinux: initialized (dev X ..."
messages.  This patch removes this notification for the normal case
but leaves the error message intact (displayed when mounting a
filesystem with an unknown labeling behavior).

Reported-by: Dave Jones <davej@codemonkey.org.uk>
Signed-off-by: Paul Moore <pmoore@redhat.com>
security/selinux/hooks.c