[Fakeroot-commits] [SCM] fakeroot branch, upstream, updated. 08ed00124d8b6b445d3b91a9aa15eec638b02f05

Clint Adams schizo at debian.org
Sun Nov 15 03:17:15 UTC 2009


The following commit has been merged in the upstream branch:
commit 397dd81ee785da2081bcf6291e49368279e4bb4f
Author: Clint Adams <schizo at debian.org>
Date:   Mon Mar 19 15:26:20 2007 +0000

    Remove setuid fake libraries and README.fake explanation.
    
    git-archimport-id: fakeroot at packages.debian.org--fakeroot/fakeroot--main--0.0--patch-118

diff --git a/README.fake b/README.fake
deleted file mode 100644
index 53c7733..0000000
--- a/README.fake
+++ /dev/null
@@ -1,24 +0,0 @@
-In /usr/lib/ there's a _SETUID_ libfakeroot.
-
-However, it's a *fake* fakeroot -- it doesn't wrap any `interesting'
-functions (check with `nm -D /usr/lib/libfakeroot.so').
-
-It was needed, because we need the LD_LIBRARY_PATH variable set.
-But, with it set, $LD_PRELOAD cannot start with a / anymore.
-And, if $LD_PRELOAD doesn't start with a slash, then for
-some strange reason (BUG, if you ask me), ld.so starts looking
-for $LD_PRELOAD, even if the binary is has the suid bit set.
-
-OK, that would be *REALLY* bad (anyone starting `fakeroot su' would
-gain root). But, fortunately, ld.so *does* ignore LD_LIBRARY_PATH.
-However, now ld.so cannot find the $LD_PRELOAD library any more,
-and it refuses to load the binary.
-
-
-Apparently, the *only* way to fix this, was to put a fake libfakeroot
-in /usr/lib/libfakeroot.so, and set it's suid bit.
-
-So, that's why.
-
-Annoyed is,
-joostje.
diff --git a/fake/Makefile.am b/fake/Makefile.am
deleted file mode 100644
index 1388bf6..0000000
--- a/fake/Makefile.am
+++ /dev/null
@@ -1,7 +0,0 @@
-AUTOMAKE_OPTIONS=foreign
-
-libdir=${exec_prefix}/lib
-
-lib_LTLIBRARIES=libfakeroot.la
-libfakeroot_la_SOURCES=libfakeroot.c
-libfakeroot_la_LDFLAGS=-release 0
diff --git a/fake/configure.ac b/fake/configure.ac
deleted file mode 100644
index 2fa1a9c..0000000
--- a/fake/configure.ac
+++ /dev/null
@@ -1,26 +0,0 @@
-dnl Process this file with autoconf to produce a configure script.
-AC_INIT([fakeroot],[FAKEROOT_VERSION],[schizo at debian.org],[fakeroot])
-AC_CONFIG_SRCDIR([libfakeroot.c])
-AC_CANONICAL_TARGET
-AC_CONFIG_AUX_DIR(..)
-
-AM_INIT_AUTOMAKE
-AM_MAINTAINER_MODE
-
-dnl AM_CONFIG_HEADER(config.h)
-
-AM_PROG_LIBTOOL
-AC_PROG_CC
-dnl Checks for programs.
-
-dnl Checks for libraries.
-dnl Replace `main' with a function in -ldl:
-AC_CHECK_LIB(dl, dlopen)
-
-
-AC_CONFIG_FILES([Makefile])
-AC_OUTPUT
-
-dnl Local variables:
-dnl mode: m4
-dnl End:
diff --git a/fake/libfakeroot.c b/fake/libfakeroot.c
deleted file mode 100644
index 20876d5..0000000
--- a/fake/libfakeroot.c
+++ /dev/null
@@ -1,3 +0,0 @@
-int See__usr_share_doc_fakeroot_README_fake(){
-  return 0; 
-}

-- 
fakeroot



More information about the Fakeroot-commits mailing list