Re: [PATCH] fs/namei.c: Hard link and rename should check same device instead of same mount

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Mar 20, 2016 at 07:06:25PM +0100, Jordi Pujol Palomer wrote:
> Therefore we can develop a new option for binding to let the superuser
> choose what is needed for every mount-bind, example:
> 
> mount --bind -o boundary $DIR $DIR
> 
> mount --bind -o noboundary $DIR1 $DIR2
> 
> and allow remount also,
> 
> mount -o remount,boundary $DIR
> 
> mount -o remount,noboundary $DIR
> 
> That seems feasible,

... until you consider the fun of moving subtrees between different mounts.
IMO it's a bloody bad idea; semantics would be hard to define, not to mention
that things that used to be on the same fs might eventually get moved to
different ones, and for those there's obviously no way to do link(2) or
rename(2) at all.

What are you actually trying to achieve?  There might be saner ways to do
it...
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux