Sorry for slow response. Matthew Wilcox wrote:If write access is denied because of a rule "No modifications to /etc/passwd", a rule "Allow modifications to /tmp/passwd" can no longer be enforced after "mount --bind /etc/ /tmp/" or "mount --bind /etc/passwd /tmp/passwd" or "mv /etc/passwd /tmp/passwd" or "ln /etc/passwd /tmp/passwd" is done. "No modifications" (i.e. "forbid modifications") and "Allow modifications" (i.e. "don't forbid modifications") are incompatible rules as long as the rules are described using pathnames but the judgment is done using inodes (or labels). If rules are described like "No modifications to passwd_t", it is correct to deny modifications of the file when the file with passwd_t was renamed or bind-mounted or hard-linked. Those who want to do access restriction based on the entity of the file prefer rules described using inodes (or labels). If rules are described like "No modifications to /etc/passwd" and "Allow modifications to /tmp/passwd", it is wrong to deny modifications of the file when /etc/passwd was renamed or bind-mounted or hard-linked to /tmp/passwd . Those who want to do access restriction based on the location of the file prefer rules described using pathnames. SELinux and Smack are the former. AppArmor and TOMOYO Linux are the latter. I'm afraid it is unlikely. Thank you. --
| Tarkan Erimer | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Greg Kroah-Hartman | [PATCH 001/196] Chinese: Add the known_regression URI to the HOWTO |
| Benjamin Herrenschmidt | Re: [PATCH] Remove process freezer from suspend to RAM pathway |
| Bart Van Assche | Re: Integration of SCST in the mainstream Linux kernel |
git: | |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Arjan van de Ven | Re: [GIT]: Networking |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| Natalie Protasevich | [BUG] New Kernel Bugs |
