Projects / pretendroot

pretendroot

Pretendroot is an LD_PRELOAD library which overrides some glibc calls, pretending you are root while doing file system operations. The main difference from Debian's fakeroot is that no daemons or other processes are involved, fake ownership and group are stored on the file system, and not in memory, hence it can survive even reboots. This library has been successfully used when building packages for the UHU-Linux distribution. All of its applications are compiled and installed as an unprivileged user. However, there's no need to patch Makefiles; commands such as "install -o root -g mail thisfile ${DESTDIR}/here" work perfectly, and the final packages will have the desired ownership and group.

Licenses
Operating Systems
Implementation

Recent releases

  •  12 Jul 2007 21:07

    Release Notes: This release adds support for the *at family of system calls, as well as for getgroups/setgroups. The wrapper script is improved, and a compiler warning is eliminated.

    •  08 Jun 2007 18:06

      Release Notes: Properly destroys meta-data of a file that ceases to exist because a rename() call replaces it with a new file. Environment variables are altered in the wrapper script instead of the library, so that they can be freely modified within a pretendroot session.

      •  25 Apr 2003 17:21

        Release Notes: A global variable that could cause race conditions for multi-threaded apps has been eliminated. Files that contain the fake ownership were sometimes created with world writable permissions.

        •  18 Apr 2003 23:32

          No changes have been submitted for this release.

          Screenshot

          Project Spotlight

          OpenStack4j

          A Fluent OpenStack client API for Java.

          Screenshot

          Project Spotlight

          TurnKey TWiki Appliance

          A TWiki appliance that is easy to use and lightweight.