Critiquing the Criticism about SELinux in Wikipedia
By Glenn Faden-Oracle on Sep 04, 2006
The SELinux entry in Wikipedia has a section called Criticism which I found very interesting. The first paragraph is simply a matter of opinion, and I am certainly among those who believe that SELinux is more complicated than it needs to be. That's why Trusted Extensions took a different tack. But the second paragraph is filled with misinformation. Having just posted a new thread Relabeling large files without copying them , I found this pretty funny. Here's the quote:
A casual user of Trusted Extensions will surely notice that you can derive labels from pathnames in an unambiguous fashion. The reasons we can do this are a bit complex, but the bottom line is that it works. Among the factors that make it possible are:
- Zones root pathnames are special-cased throughout the kernel.
- Zones have unique labels.
- Zones cannot create ambigouous pathnames (such has hardlinks between files in different zones).
- Mount policy is always consistent with respect to labeling policy.
- The Solaris 10 kernel can lookup pathnames by vnode.
- The label of a file is invarient regardless of its local pathname.
The last item needs some more explanation. It is a bit like Einsteinian Relativity: The label of a file is invarient regardless of the reference frame (zone) from which it is being observed.
While it is true that two zones may use different pathnames for the same underlying file, the kernel can always determine which zone is the ultimate owner of the object. This may require unwinding symbolic links, loopback mounts, and NFS mounts, but it's quite deterministic. The fact that Trusted Exensions does not extend any on-disk file system structures, such as inodes, means that the mandatory access policy works properly and consistently with all known file systems.