On Tue, May 16, 2006 at 04:31:48PM +0300, Mark, Oren
wrote:> /a/b/c/d/e -> ../e
> Path = /a/b/c/d
> Chroot = true
The chroot system call will prevent any access from outside the root, so
it's impossible to access /a/b/c/e from inside the chroot area if you
use a symlink. If you can setup a "bind" mount in your /etc/fstab
file,
you can use that instead (this is supported by modern GNU tools):
/a/b/c/e /a/b/c/d/e none bind
Since the content is now mounted in two places, the path restriction of
/a/b/c/d will now allow you to access the content in "e".
The only other alternative I can think of is to switch which spot is the
real directory and which spot is the symlink:
rm /a/b/c/d/e
mv /a/b/c/e /a/b/c/d/e
ln -s ../d/e /a/b/c/e
..wayne..