Re: noisy selinux messages on tmpfs mount.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Jan 09, 2015 at 08:06:49AM -0500, Stephen Smalley wrote:
 
 > On Thu, Jan 8, 2015 at 2:39 PM, Paul Moore <pmoore@xxxxxxxxxx> wrote:
 > > On Thursday, January 08, 2015 02:34:57 PM Paul Moore wrote:
 > >> On Thursday, January 08, 2015 02:08:22 PM Dave Jones wrote:
 > >> > systemd has started mounting a tmpfs in /run/user/<uid> every time a
 > >> > session begins.  So after ssh'ing into a box a number of times, dmesg
 > >> > looks like this..
 > >> >
 > >> > [...] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
 > >> > [...] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
 > >>
 > >> {snip}
 > >>
 > >> > What's a good solution to stopping this spew ? printk_once doesn't seem
 > >> > like a good fit, in case someone is doing different labelling behaviours
 > >> > between mounts.
 > >> >
 > >> > Could we only print it if the mount is being done with non-default
 > >> > behaviour perhaps?
 > >>
 > >> I'm very curious to hear Stephen's opinion on the issue, but I wonder how
 > >> much this would honestly impact us if we removed this message in the case
 > >> where we mount the filesystem with a known labeling behavior.
 >
 > We already reduced that message to KERN_DEBUG.  Is that not sufficient?

That doesn't really help with the flooding of dmesg, so no.
I should also note that it's not just logging in that creates a new
session, it also seems to be getting triggered by cron jobs, or
whatever the systemd replacement is.

	Dave

_______________________________________________
Selinux mailing list
Selinux@xxxxxxxxxxxxx
To unsubscribe, send email to Selinux-leave@xxxxxxxxxxxxx.
To get help, send an email containing "help" to Selinux-request@xxxxxxxxxxxxx.



[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux