-
Notifications
You must be signed in to change notification settings - Fork 75
Home
Home | Download | Documentation | ChangeLog | Development | ToDo | Links
fakechroot runs a command in an environment were is additional possibility to
use chroot
(8) command without root privileges. This is useful for allowing
users to create own chrooted environment with possibility to install another
packages without need for root privileges.
Version 2.16 is released. The fakechroot script loads additional environment
settings from configuration directory (--config-dir
option). By default
additional settings are provided for chroot
(8) and debootstrap
(8)
commands. Wrapped chroot
(8) command loads ld.so.conf
paths to
LD_LIBRARY_PATH
environment variable. Fixes were made for getpeeraddr
(3)
and getsockaddr
(3) functions.
Version 2.15 is released. New function faccessat
(2) was added: it fixes
test -r
command. The popen
(3) function were reimplemented based on OpenBSD
source to prevent some coredumps with newer GNU C Library.
Version 2.14 is released. The source code was refactored: all functions was
moved to separated files. The opendir
(3) function is compiled only if it
doesn't call other function internally. It fixes opendir
(3), fts_open
(3)
and ftw
(3) functions. The fts_*
(3) functions were reimplemented based on
OpenBSD source. The __opendir2
(3) function was reimplemented based on
FreeBSD source. Fixes were made for older GNU C Library.
fakechroot replaces more library functions (chroot
(2), open
(2), etc.) by
ones that simulate the effect the real library functions would have had, had
the user really been in chroot. These wrapper functions are in a shared
library /usr/lib/fakechroot/libfakechroot.so
which is loaded through the
LD_PRELOAD
mechanism of the dynamic loader. (See ld.so
(8))
In fake chroot you can install Debian bootstrap with debootstrap --variant=fakechroot
command. In this environment you can use i.e.
apt-get
(8) command to install another packages from common user's account.
fakechroot is mainly used as:
- a variant of debootstrap, the tool which can set up new Debian or Ubuntu system.
- a helper for febootstrap, the tool which can set up new Fedora system.
fakechroot had found another purposes:
- to be a part of Klik application installer as kfakechroot project
- to be a supporter for pbuilder building system
- to be a supporter for Apport retracer
- to be a supporter for libguestfs tools for accessing and modifying virtual machine disk images
- to be a part of Slind - a minimal Debian-based distro for embedded devices as libfakechroot-cross project