[arch-dev-public] fakeroot breakage (WAS: Re: providing grsecurity in [community])

Thomas Bächler thomas at archlinux.org
Wed Apr 16 13:06:33 EDT 2014


Okay, so I "fixed" the fakeroot to work with ACLs by simply removing all
special ACL handling:

Index: PKGBUILD
===================================================================
--- PKGBUILD    (Revision 210798)
+++ PKGBUILD    (Arbeitskopie)
@@ -4,7 +4,7 @@

 pkgname=fakeroot
 pkgver=1.20
-pkgrel=1
+pkgrel=2
 pkgdesc="Gives a fake root environment, useful for building packages as
a non-privileged user"
 arch=('i686' 'x86_64')
 license=('GPL')
@@ -15,6 +15,11 @@
 source=(http://ftp.debian.org/debian/pool/main/f/${pkgname}/${pkgname}_${pkgver}.orig.tar.bz2)
 md5sums=('9777a81d4d1878422447a1d0030c1f9f')

+prepare() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+  sed 's|^#ifdef HAVE_ACL_T$|#if 0|' -i libfakeroot.c wrapfunc.inp
+}
+
 build() {
   cd "${srcdir}/${pkgname}-${pkgver}"
   ./configure --prefix=/usr --libdir=/usr/lib/libfakeroot \

With this, fakeroot does everything as expected:

# getfattr -d -m - foo
# setcap cap_net_admin=p foo
# getfattr -d -m - foo
# file: foo
security.capability=0sAAAAAgAQAAAAAAAAAAAAAAAAAAA=

# getcap foo
foo = cap_net_admin+p
#
# getfattr -d -m - bar
# setfacl -m u:thomas:rw bar
# getfattr -d -m - bar
# file: bar
system.posix_acl_access=0sAgAAAAEABgD/////AgAGAOgDAAAEAAQA/////xAABgD/////IAAEAP////8=

# getfacl bar
# file: bar
# owner: thomas
# group: users
user::rw-
user:thomas:rw-
group::r--
mask::rw-
other::r--

Should I push this to testing?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 901 bytes
Desc: OpenPGP digital signature
URL: <http://mailman.archlinux.org/pipermail/arch-dev-public/attachments/20140416/b6405c81/attachment.asc>


More information about the arch-dev-public mailing list