Casey Schaufler wrote:But that's not quite true. "/etc/passwd" can indeed point anywhere, but it can only point to a single place at a time. I've alluded to this several times in pointing out that labels and names have dualistic many:one and one:many relationships to actual files. This is Tetsuo's point: if you symlink or chroot /etc/shadow to point some place strange, then the redirection will be resolved *before* AppArmor and TOMOYO consider the security question of whether access should be allowed. Therefore, the fact that you re-directed it is irrelevant to security. Hard links are indeed handled differently, but they are handled. I don't know what TOMOYO does. What AppArmor does is exploit the fact that you cannot hard link a directory, so the target of a hard link must be a file. From there, we can use the dentry to disambiguate which file. So again, even though more than one name points to the inode, the name that was actually used to get to this inode is unique, and we recover it and then consider the security question of whether you get to access that name. Well, AppArmor and TOMOYO don't do well if the namespace is madly manipulated. They remain secure, because they prohibit name space manipulations by confined processes. If what you wanted to do was lots of name space manipulations, it makes (at least AppArmor) a poor choice for you. Agreed. Duality abounds in this space. Crispin -- Crispin Cowan, Ph.D. http://crispincowan.com/~crispin The Olympic Games: Symbolizing oppressiiion and corruption for over a hundred years -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
| David Miller | [GIT]: Networking |
| Greg KH | Re: [PATCH 5/7] FUSE: implement ioctl support |
| Frans Meulenbroeks | Re: [PATCH 00/10] AXFS: Advanced XIP filesystem |
| Rafael J. Wysocki | [Bug #11407] suspend: unable to handle kernel paging request |
git: | |
| Kevin Ballard | Re: git on MacOSX and files with decomposed utf-8 file names |
| Andi Kleen | Re: pack operation is thrashing my server |
| Aubrey Li | git proxy issue |
| Thomas Glanzmann | Re: fatal: ambiguous argument 'HEAD': unknown revision or path not in the working ... |
| Bryan Irvine | Re: find -exec {} help |
| Todd Pytel | IDE or SCSI virtual disks for VMWare image? |
| NetOne - Doichin Dokov | OpenBSD as Xen domU |
| Calomel | Re: OpenSSL On Openbsd help |
| Laurent Pinchart | [PATCH] dm9000: Support MAC address setting through platform data. |
| Jay Cliburn | Re: [PATCH 06/26] atl1: update initialization parameters |
| Benjamin Herrenschmidt | [PATCH 6/11] ibm_newemac: Cleanup/fix support for STACR register variants |
| Chris Snook | [RFC] introducing the Atheros L2 Fast Ethernet driver |
