A Plumber's Wish List for Linux
A Plumber's Wish List for Linux
Posted Oct 10, 2011 17:17 UTC (Mon) by mezcalero (subscriber, #45103)In reply to: A Plumber's Wish List for Linux by dpquigl
Parent article: A Plumber's Wish List for Linux
Having user xattrs on cgroupfs and procfs allows userspace to attach meta information to processes and services (the latter because in systemd each service gets a cgroup of its own). THis can be useful for a multitude of things. For example, in systemd we'd like to allow processes to mark themselves as "don't kill me on shutdown during killall" (which some borked DM software might need), and it would be really pretty if they could just set "trusted.dont-kill-me" or so as xattr on their procfs dir /proc/self, so that it actually is really the process that is marked that way, instead of having a side channel for this. But the fact that this way we can attach meta info to processes and services has a lot of other benefits too. For example, Gtk programs could expose their app name and icon via an xattr on /proc/self and gnome-system-monitor could use it to show a pretty name in the process view and so on.
In fact, attaching meta information to OS objects like cgroups and processes is probably a lot more useful then simply attaching it to normal files as we have supported now since so long.
