Re: ext3 and like, mount point in module

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

 



Tomas Bortoli <tomasbortoli@xxxxxxxxxx> writes:

>> What about chroot/namespaces/etc? :)
>
> I think chroot would work even so. Why would a program call chroot("..") on the root dir of the root fs? 
> It's unnecessary and tricky. A local program has all the information to know relative paths and move consequently.
> Anyway it is possible.
>
>
>> I'm not sure if it is worth the hassle, I bet some applications depend on that behavior.
>> But you can give it a try, I'd insert a negative dentry for ".." if ".." is child of the current
>> root.
>
> If with negative dentry you mean not putting ".." I've understood. 
> But, ".." is needed for file system mounted not on the root point, otherwise they would be disconnected from the "parent" fs.
> So, the "mount_point" variable is needed and it is not present in the file system module itself, as you said. 
> Where can I find the vfs module? 
> And, If I've understood what Al Viro said, it's correct to work on vfs rather than on the specific file system module.

fs/namei.c  follow_dotdot and follow_dotdot_rcu

You might also take a gander at the patches I have recently posted that
address a similiar but different issue with .. and bind mounts.  That
should at least show you where the code is.

Eric
--
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