manpage / setuid fixes uNF
authorMike Frysinger <vapier@gentoo.org>
Sun, 10 Oct 2004 03:29:28 +0000 (03:29 +0000)
committerMike Frysinger <vapier@gentoo.org>
Sun, 10 Oct 2004 03:29:28 +0000 (03:29 +0000)
sys-apps/shadow/ChangeLog
sys-apps/shadow/Manifest
sys-apps/shadow/shadow-4.0.4.1-r4.ebuild

index a2734415afa17dc8a4c84e0d10abe0ad0e5d3d2b..dea6b7d592d3783960b15d9fe557be6f32400132 100644 (file)
@@ -1,6 +1,9 @@
 # ChangeLog for sys-apps/shadow
 # Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/shadow/ChangeLog,v 1.69 2004/10/08 00:01:35 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/shadow/ChangeLog,v 1.70 2004/10/10 03:29:28 vapier Exp $
+
+  09 Oct 2004; Mike Frysinger <vapier@gentoo.org> shadow-4.0.4.1-r4.ebuild:
+  Clean up the manpage fixes and change setuid perms to 4711 by default #47208.
 
 *shadow-4.0.4.1-r4 (07 Oct 2004)
 
index bb31795efdcda4ce72fbf69b82f77122edeea814..699680c30c4e3e598ff88a845f5057e5ce53d618 100644 (file)
@@ -1,9 +1,9 @@
 -----BEGIN PGP SIGNED MESSAGE-----
 Hash: SHA1
 
-MD5 5b423dcdf2cb80e422412e25319e878c ChangeLog 13453
+MD5 62663b6dddc4851b00a465fb615490a8 ChangeLog 13610
 MD5 9a09f8d531c582e78977dbfd96edc1f2 metadata.xml 164
-MD5 2447ad2a0036a0c962627d3f8ae56f1f shadow-4.0.4.1-r4.ebuild 5979
+MD5 5255499982264a91087d63f30d9b9cb3 shadow-4.0.4.1-r4.ebuild 6006
 MD5 5e8918c1ffa5fc209873b54e7ac7bc44 shadow-4.0.4.1-r3.ebuild 5944
 MD5 cef6788bc7c8c5468c1b1f68df77ed9e files/digest-shadow-4.0.4.1-r4 67
 MD5 e70a5f61d37c3c67a4b860d8a6191dbc files/securetty 230
@@ -25,7 +25,7 @@ MD5 1baa646400c4a596290e9d4b9e1c09b2 files/pam.d/system-auth-1.1 491
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.9.10 (GNU/Linux)
 
-iD8DBQFBZh1vHTu7gpaalycRAmiSAJ9PCvDxmO+U+wS2TQrT73gwTo74bwCgr+17
-sCFCmiOzFk6mF48/hHEfFCA=
-=kopE
+iD8DBQFBaKyvHTu7gpaalycRAhBeAKDBPOejuJ7dJBjIgg/nZia2EDgrzACg2ove
+x54JEo/JEb5ZzO9GiW50Vb4=
+=3GVn
 -----END PGP SIGNATURE-----
index 8a3e19780a9d1c91d1f0c234364fc342048c0271..d3622021bdfc46a59eed83b7272c592a1066be6f 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2004 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/shadow/shadow-4.0.4.1-r4.ebuild,v 1.2 2004/10/08 04:53:54 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/shadow/shadow-4.0.4.1-r4.ebuild,v 1.3 2004/10/10 03:29:28 vapier Exp $
 
 inherit eutils libtool gnuconfig flag-o-matic
 
@@ -89,7 +89,9 @@ src_compile() {
 src_install() {
        make DESTDIR=${D} install || die "install problem"
 
-#      dodir /etc/default /etc/skel
+       # lock down setuid perms #47208
+       fperms go-r /bin/su /usr/bin/ch{fn,sh,age} \
+               /usr/bin/{expiry,newgrp,passwd,gpasswd} || die "fperms"
 
        # Remove libshadow and libmisc; see bug 37725 and the following
        # comment from shadow's README.linux:
@@ -139,16 +141,13 @@ src_install() {
                newins shadow groupadd
        fi
 
+       # Remove manpages that are handled by other packages
+       cd ${D}/usr/share/man
+       find \
+               -name 'id.1' \
+               -o -name 'passwd.5' \
+               -exec rm {} \;
        cd ${S}
-       # The manpage install is beyond my comprehension, and
-       # also broken. Just do it over.
-       rm -rf ${D}/usr/share/man/*
-
-       rm -f man/id.1 man/getspnam.3 man/passwd.5
-       for x in man/*.[0-9]
-       do
-               [ -f ${x} ] && doman ${x}
-       done
 
        if ! use pam; then
                # Dont install the manpage, since we dont use