[Rpm-maint] odd chroot behavior inside the rpm transaction
pinto.elia at gmail.com
Tue Sep 15 09:51:02 UTC 2009
On Mon, Sep 14, 2009 at 10:54 PM, Seth Vidal <skvidal at fedoraproject.org>wrote:
> as I said:
> if, from the python bindings, I open a file with a name starting with '/'
> while in a transaction then as expected, the file is opened inside the
> however, if I open a file with a name NOT starting with '/' then the file
> is opened OUTSIDE of the installroot.
> Does this make any sense? B/c I admit I don't quite grok why it would be
> this way.
I suggest to read the man page chroot(2)
chroot() changes the root directory of the calling process to
specified in path. This directory will be used for pathnames
with /. The root directory is inherited by all children of the
> Rpm-maint mailing list
> Rpm-maint at lists.rpm.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Rpm-maint