|
|
Subscribe / Log in / New account

Why not just not support hard links?

Why not just not support hard links?

Posted Sep 2, 2004 12:52 UTC (Thu) by maniax (subscriber, #4509)
In reply to: Why not just not support hard links? by hensema
Parent article: More notes on reiser4

Using hardlinks for chroot jails is a bad idea. Firstly, you don't have a good way to protect the file, and if you do some modifications on the chroot environment's structure, you'll have to update all it's users (or, if the tool that update software in it uses unlink() and then open(), you'll have to update the users of the env. on every update).
Just use bind mounts, which will save more space, and make it possible to have the evironment mounted somewhere read-write for updates, and somewhere read-only, for use.


to post comments

Why not just not support hard links?

Posted Sep 2, 2004 16:35 UTC (Thu) by Ross (guest, #4065) [Link]

If the file is not writeable, there is no problem. If the process running
in the jail is under uid 0, then you aren't gaining anything by the jail
anyway.


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds