summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schlemmer <azarah@gentoo.org>2006-07-01 21:27:14 +0000
committerMartin Schlemmer <azarah@gentoo.org>2006-07-01 21:27:14 +0000
commit714413020d43ddb8f68fe3efcead342569538161 (patch)
treecf92276e6ef97f7694676d16a18a756f49adc1ef /sys-libs
parentVersion bump, see bug #133621. (diff)
downloadgentoo-2-714413020d43ddb8f68fe3efcead342569538161.tar.gz
gentoo-2-714413020d43ddb8f68fe3efcead342569538161.tar.bz2
gentoo-2-714413020d43ddb8f68fe3efcead342569538161.zip
Set /sbin/unix_chkpwd suid, else user programs cannot auth.
(Portage version: 2.1.1_pre1-r5)
Diffstat (limited to 'sys-libs')
-rw-r--r--sys-libs/pam/ChangeLog6
-rw-r--r--sys-libs/pam/pam-0.99.5.0-r1.ebuild5
-rw-r--r--sys-libs/pam/pam-0.99.5.0.ebuild5
3 files changed, 13 insertions, 3 deletions
diff --git a/sys-libs/pam/ChangeLog b/sys-libs/pam/ChangeLog
index 5cb3f5e47943..2aa2ae454a9d 100644
--- a/sys-libs/pam/ChangeLog
+++ b/sys-libs/pam/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for sys-libs/pam
# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/pam/ChangeLog,v 1.112 2006/07/01 19:57:29 azarah Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/pam/ChangeLog,v 1.113 2006/07/01 21:27:14 azarah Exp $
+
+ 01 Jul 2006; Martin Schlemmer <azarah@gentoo.org> pam-0.99.5.0.ebuild,
+ pam-0.99.5.0-r1.ebuild:
+ Set /sbin/unix_chkpwd suid, else user programs cannot auth.
01 Jul 2006; Martin Schlemmer <azarah@gentoo.org> +files/pam.d-0.99/other,
+files/pam.d-0.99/system-auth, pam-0.99.5.0.ebuild,
diff --git a/sys-libs/pam/pam-0.99.5.0-r1.ebuild b/sys-libs/pam/pam-0.99.5.0-r1.ebuild
index cc0b779de58b..1a7c95cc3c52 100644
--- a/sys-libs/pam/pam-0.99.5.0-r1.ebuild
+++ b/sys-libs/pam/pam-0.99.5.0-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/pam/pam-0.99.5.0-r1.ebuild,v 1.2 2006/07/01 19:57:29 azarah Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/pam/pam-0.99.5.0-r1.ebuild,v 1.3 2006/07/01 21:27:14 azarah Exp $
inherit libtool multilib eutils autotools pam toolchain-funcs gnuconfig
@@ -172,6 +172,9 @@ src_install() {
fi
done
+ # Need to be suid
+ fperms u+s /sbin/unix_chkpwd
+
dodir /$(get_libdir)
mv "${D}/usr/$(get_libdir)/libpam.so"* "${D}/$(get_libdir)/"
mv "${D}/usr/$(get_libdir)/libpamc.so"* "${D}/$(get_libdir)/"
diff --git a/sys-libs/pam/pam-0.99.5.0.ebuild b/sys-libs/pam/pam-0.99.5.0.ebuild
index 4c395eb6b0e9..3e2c39bb285c 100644
--- a/sys-libs/pam/pam-0.99.5.0.ebuild
+++ b/sys-libs/pam/pam-0.99.5.0.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/pam/pam-0.99.5.0.ebuild,v 1.2 2006/07/01 19:57:29 azarah Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/pam/pam-0.99.5.0.ebuild,v 1.3 2006/07/01 21:27:14 azarah Exp $
inherit libtool multilib eutils autotools pam
@@ -63,6 +63,9 @@ src_compile() {
src_install() {
emake DESTDIR="${D}" install || die "make install failed"
+ # Need to be suid
+ fperms u+s /sbin/unix_chkpwd
+
dodir /$(get_libdir)
mv "${D}/usr/$(get_libdir)/libpam.so"* "${D}/$(get_libdir)/"
mv "${D}/usr/$(get_libdir)/libpamc.so"* "${D}/$(get_libdir)/"