Al Viro <viro@ftp.linux.org.uk> wrote:I doubt anybody uses bind mounts & co instead of symlinks in order to prevent rename() while still allowing to move files by either copying or by using the source file in the bound directory. At least I expected bind mounted directories to behave like symlinked ones, minus the problems of symlinks. Since this feature only protects you from rename(src/foo,dst/foo) if 1) There is no way to access src and dst in the same mount space 2) src and dst are writebale by the attacker 3) Unlinking src/foo is OK 4) Renaming src/foo is OK as long as it's within the same mount as foo 5) Symlinking src/foo to dst/foo is OK 6) Creating dst/foo having a different owner is OK 7) Having dst/foo with the original content and owner from src/foo is _not_ OK 8) Moon crashes on earth , I'd rather like to have a fast mv. Security checks as in "we built a steel door into that Chinese paper wall"? As far as I understand, the restriction would not be removed by the LSM explicitely allowing it, but by the fixed vfs then being able to handle cross-mountpoint-renames. Maybe yo'll want to keep the ability for the users who use bind mounts in order to not allow rename() ... both of them.-) /me prepares for the impact of a large round object on earth. -
| James Bottomley | [Ksummit-2008-discuss] Fixing the Kernel Janitors project |
| Tejun Heo | [PATCH 3/7] FUSE: implement nonseekable open |
| menage | [PATCH 00/10] Containers(V10): Generic Process Containers |
| Linus Torvalds | Linux 2.6.27-rc8 |
git: | |
| Bill Lear | Meaning of "fatal: protocol error: bad line length character"? |
| Linus Torvalds | People unaware of the importance of "git gc"? |
| Peter Karlsson | RCS keyword expansion |
| Junio C Hamano | Re: [PATCH/RFC] Allow writing loose objects that are corrupted in a pack file |
| Richard Stallman | Real men don't attack straw men |
| Joerg Zinke | openbsd router hardware |
| Christopher Sean Hilton | Soekris equivalent |
| Paul de Weerd | Re: About Xen: maybe a reiterative question but .. |
| David Miller | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| David Miller | [GIT]: Networking |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| Hannes Eder | [PATCH 03/27] drivers/net: fix sparse warning: returning void-valued expression |
