FreeBSD-11.1 - symbolic links in jails
Erwan David
erwan at rail.eu.org
Mon Jun 25 17:14:46 UTC 2018
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
More information about the freebsd-questions
mailing list