Date: Mon, 25 Jun 2018 19:14:35 +0200 From: Erwan David <erwan@rail.eu.org> To: freebsd-questions@freebsd.org Subject: Re: FreeBSD-11.1 - symbolic links in jails Message-ID: <8915604e-4fbb-5e50-2364-6dfd3b4312f6@rail.eu.org> In-Reply-To: <5c01d3596c548d3bac00e22ff2fcd2a5.squirrel@webmail.harte-lyne.ca> References: <5c01d3596c548d3bac00e22ff2fcd2a5.squirrel@webmail.harte-lyne.ca>
next in thread | previous in thread | raw e-mail | index | archive | help
Le 06/25/18 à 18:59, James B. Byrne via freebsd-questions a écrit : > I am curious about the following observed behaviour: > > On the host I see this: > > ll /usr/jails/mx32/etc/a* > lrwxr-xr-x 1 root wheel 17 Jun 25 12:45 > /usr/jails/mx32/etc/aliases -> /etc/mail/aliases > > more /usr/jails/mx32/etc/aliases > # $FreeBSD: releng/11.1/etc/mail/aliases 243752 2012-12-01 15:11:46Z > rwatson $ > # @(#)aliases 5.3 (Berkeley) 5/24/90 > # > . . . > > On the jail I see this: > > ll /etc/alias* > lrwxr-xr-x 1 root wheel 17 Jun 25 12:45 /etc/aliases -> > /etc/mail/aliases > > # $FreeBSD: releng/11.0/etc/mail/aliases 243752 2012-12-01 15:11:46Z > rwatson $ > # @(#)aliases 5.3 (Berkeley) 5/24/90 > # mx32 > # > . . . > > I wish to confirm that this is intended behaviour; that a single > symbolic link can have differing target files depending whether one is > in a jail or not. > > It seems legit to me : a symbolic link contains a path to the "real" file, thus when looked on the host you point to the /etc/mail/aliases of the host, when in the jail you point to the one in the jail
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8915604e-4fbb-5e50-2364-6dfd3b4312f6>