OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: chroot question: Hardlinks or softlinks

From: Lutz Jaenicke (Lutz.Jaenickeaet.TU-Cottbus.DE)
Date: Tue Dec 02 2003 - 03:04:34 CST


On Tue, Dec 02, 2003 at 09:56:49AM +0100, Ralf Hildebrandt wrote:
> Hi!
>
> Is it better to:
>
> ln /etc/resolv.conf $queue_directory/etc/resolv.conf
>
> or to
>
> ln -s $queue_directory/etc/resolv.conf /etc/resolv.conf

I don't know about your setup, but typically files in /etc are part of
the root partition which is mounted first and the content of which
contains important configuration information. /var is only mounted
later, so your second proposal may lead to "interesting" results
during the boot process.

Best regards,
        Lutz
--
Lutz Jaenicke Lutz.Jaenickeaet.TU-Cottbus.DE
http://www.aet.TU-Cottbus.DE/personen/jaenicke/
BTU Cottbus, Allgemeine Elektrotechnik
Universitaetsplatz 3-4, D-03044 Cottbus