]> 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)
commit4a5792142d420bb2e0121fb8fceceab9c7b4f760
tree003e4c44737af4b55b22e3466743bf878b9f72d8
parent20384916fedb7dd7f9c0b384f05020b018f67f30
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