Re: ext3 and like, mount point in module

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

 



Am 01.08.2015 um 15:10 schrieb Tomas Bortoli:
> Thanks for the clarification!
> I'm trying to make a patch to slightly improve security in file system.
> It consists in removing the ".." dir entry in the "/" dir of the file system mounted on the root mount point.

What about chroot/namespaces/etc? :)

> This could prevent an attacker from using a long series of "../../../" etc in a  transversal directory attack 
> with unknown initial relative path to reach the root dir for sure and then move from there.
> The dangerousness depends from which is the flaw
> Do you think it's worth it?

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.

Thanks,
//richard
--
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