diff options
author | Paul Moore <pmoore@redhat.com> | 2015-02-04 17:34:30 +0100 |
---|---|---|
committer | Paul Moore <pmoore@redhat.com> | 2015-02-04 17:34:30 +0100 |
commit | 2088d60e3b2f53d0c9590a0202eeff85b288b1eb (patch) | |
tree | 003e4c44737af4b55b22e3466743bf878b9f72d8 | |
parent | selinux: Remove unused function avc_sidcmp() (diff) | |
download | linux-2088d60e3b2f53d0c9590a0202eeff85b288b1eb.tar.xz linux-2088d60e3b2f53d0c9590a0202eeff85b288b1eb.zip |
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>
-rw-r--r-- | security/selinux/hooks.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index 6da7532893a1..c253caa90bb4 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c @@ -456,10 +456,6 @@ static int sb_finish_set_opts(struct super_block *sb) if (sbsec->behavior > ARRAY_SIZE(labeling_behaviors)) printk(KERN_ERR "SELinux: initialized (dev %s, type %s), unknown behavior\n", sb->s_id, sb->s_type->name); - else - printk(KERN_DEBUG "SELinux: initialized (dev %s, type %s), %s\n", - sb->s_id, sb->s_type->name, - labeling_behaviors[sbsec->behavior-1]); sbsec->flags |= SE_SBINITIALIZED; if (selinux_is_sblabel_mnt(sb)) |