News

31 Mar 2009

New version 2.9 is released. It fixes getpeername(2), getsockname(2), execve(2), chroot(2), mktemp(2) functions. New functions were added: futimesat(2), bindtextdomain(3), inotify_add_watch(2). "make check" command works as expected.

25 Jul 2008

New version 2.8 is released. It fixes __fxstatat64(3) function and brings better support for FreeBSD.

17 Jul 2008

New version 2.7.1 is released. It supports uClibc and older GNU libc.

Wiki pages

What is it?

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.

How does it work?

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.

Where is it used?

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:

(You are AnonymousGnome)