FreeBSD-11.1 - symbolic links in jails
freebsd.ed.lists at sumeritec.com
Tue Jun 26 03:55:27 UTC 2018
On Mon, 25 Jun 2018 12:59:06 -0400
"James B. Byrne via freebsd-questions" <freebsd-questions at freebsd.org>
> 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 is even a bit more confusing. When you access the same link from
outside the jail, it will target really the one in the root directory.
Symbolic links are always relative to the environment it is used in.
But they can cross mount points.
If you want to make a link always pointing to the same thing, you will
have to use hard links. But you are not able to cross mount points then
and it opens the doors for software breaking out of the jail.
More information about the freebsd-questions