OSDN Git Service

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)
commit2088d60e3b2f53d0c9590a0202eeff85b288b1eb
tree003e4c44737af4b55b22e3466743bf878b9f72d8
parente230f12c98232de0c40a81f28a34d2cff8450e7f
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