On Fri, May 19, 2006 at 04:25:46PM -0400, Daniel Ouellet wrote:
> >>Would hardlinking /home into /var/www/home help? I don't know all the
> >>details of chroot so I don't know if this would work.
[...]
> >apache's chroot.  Is it then possible to hard-link from the chroot  
> >into the home directory of the user, and that user still be able to  
[...]
> As far as I understand it, that's the point of chrooted the httpd stuff. 
> You can't get out of it even with hard-link. What would be the point of 
> it if you could right?

Guys, what are you all talking about?

You can't "hardlink" directories and you can't "hardlink" across
file system boundaries. What you call "hardlink" is the process of
creating a directory entry referencing an inode already referenced
by some other directory entry within the same filesystem.


> It's chrooted to /var/www and it stay there. Anything you want httpd to 
> access needs to be under that.

Wrong. It's about directories, not about inodes.

$ mkdir foo bar
$ echo gaga > foo/gaga
$ ln {foo,bar}/gaga
$ cp -p /bin/sh foo
$ sudo chroot foo /sh -c ':> gaga'
$ ls -l bar

Ciao,
        Kili

Reply via email to