[pacman-dev] [PATCH] change the cwd from / to config->root while running scriplets
VMiklos
vmiklos at frugalware.org
Mon Jan 16 17:30:56 EST 2006
On Mon, Jan 16, 2006 at 11:14:14PM +0100, Aurelien Foret <aurelien at archlinux.org> wrote:
> AFAICS, the scriplet is run inside a chrooted environment at the top
> level directory, so what's the difference between usr/lib and /usr/lib?
>
> Basically, that's the same code as in pacman 2.9.7: where's the
> incompatibility?
pls read the manpage of chroot(2):
"This call does not change the current working directory, so that
after the call `.' can be outside the
tree rooted at `/'. In particular, the superuser can escape
from a `chroot jail' by doing `mkdir foo;
chroot foo; cd ..'."
udv / greetings,
VMiklos
--
Developer of Frugalware Linux, to make things frugal - http://frugalware.org
More information about the pacman-dev
mailing list