Fixfiles "undocumented feature"
I'm running FC2's SELinux (w/ policycoreutils-1.11-2) and I've noticed that 'fixfiles relabel' has the rather annoying property (I'd call it a bug) of erasing *all* of /tmp. Is this necessary? It kills screen sessions, X11 sockets, ssh agents, esd, gconf locks, gnome IPC, and all sorts of other important things that make running systems not want to run very well anymore.
At the very least, some sort of warning in the manpage would be nice.
Signature · 8 lines
Mike Perry Mad Computer Scientist fscked.org evil labs -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 6 lines · Mike Perry
I'm running FC2's SELinux (w/ policycoreutils-1.11-2) and I've noticed that 'fixfiles relabel' has the rather annoying property (I'd call it a bug) of erasing *all* of /tmp. Is this necessary? It kills screen sessions, X11 sockets, ssh agents, esd, gconf locks, gnome IPC, and all sorts of other important things that make running systems not want to run very well anymore.
As I recall, Dan or Russell added the purging of /tmp to avoid problems with the types on entries such as /tmp/orbit*, /tmp/.ICE-unix, /tmp/.X11-unix, etc by removing them upon an initial relabeling. The files will then be re-created in the right type automatically due to file type transition rules based on the creating domain. fixfiles/setfiles has no easy way to determine the right type for any pre-existing files there. Dan or Russell then added another target (fixfiles restore) as an alternative that doesn't purge /tmp.
Quoted 1 line
At the very least, some sort of warning in the manpage would be nice.
Yes, I agree with that. And perhaps the purging should be an option, e.g. fixfiles -p relabel to purge /tmp and relabel.
Signature · 8 lines
Stephen Smalley <[email protected]> National Security Agency -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.