On Thu, 2008-09-18 at 11:09 -0700, Eric W. Biederman wrote:
I suspect we could tweak the logic in selinux_proc_get_sid() to always
label all symlinks under /proc with the base proc_t type already used
for e.g. /proc/self, at which point existing policies would be ok.
Unresolved; presently has a single label for all nodes.
See https://bugzilla.redhat.com/show_bug.cgi?id=228902
for prior discussion of fine-grained labeling support for sysfs.
udev has selinux support - looks up the appropriate context in a
userland config file (file_contexts) via libselinux matchpathcon(3) and
sets it upon creation. tmpfs has long supported getting/setting
security.* attributes.
If proc supported setxattr, then I suppose early userspace could label
it instead of the kernel needing to determine a label internally. But
not sure how we'd cleanly migrate to avoid breakage with old userspace.
--
Stephen Smalley
National Security Agency
--