diff options
author | Stefan Briesenick <sbriesen@gentoo.org> | 2008-11-15 16:04:33 +0000 |
---|---|---|
committer | Stefan Briesenick <sbriesen@gentoo.org> | 2008-11-15 16:04:33 +0000 |
commit | d8ae8bab125c7393409e0ea51e3362626b4e3427 (patch) | |
tree | 6d325d60b5de36e953fe6d560847eac664426c94 /net-misc | |
parent | amd64/x86 stable, bug #246602 (diff) | |
download | gentoo-2-d8ae8bab125c7393409e0ea51e3362626b4e3427.tar.gz gentoo-2-d8ae8bab125c7393409e0ea51e3362626b4e3427.tar.bz2 gentoo-2-d8ae8bab125c7393409e0ea51e3362626b4e3427.zip |
install /bin/passwd as suid
(Portage version: 2.2_rc14/cvs/Linux 2.6.26-gentoo-r1 i686)
Diffstat (limited to 'net-misc')
-rw-r--r-- | net-misc/scponly/ChangeLog | 6 | ||||
-rw-r--r-- | net-misc/scponly/scponly-4.8-r1.ebuild | 18 |
2 files changed, 12 insertions, 12 deletions
diff --git a/net-misc/scponly/ChangeLog b/net-misc/scponly/ChangeLog index 77d5b741b00f..548c66015083 100644 --- a/net-misc/scponly/ChangeLog +++ b/net-misc/scponly/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for net-misc/scponly # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/scponly/ChangeLog,v 1.40 2008/11/13 23:02:28 sbriesen Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/scponly/ChangeLog,v 1.41 2008/11/15 16:04:33 sbriesen Exp $ + + 15 Nov 2008; Stefan Briesenick <sbriesen@gentoo.org> + scponly-4.8-r1.ebuild: + install /bin/passwd as suid 13 Nov 2008; Stefan Briesenick <sbriesen@gentoo.org> scponly-4.8-r1.ebuild: diff --git a/net-misc/scponly/scponly-4.8-r1.ebuild b/net-misc/scponly/scponly-4.8-r1.ebuild index edc937c5c783..0027608fcfb9 100644 --- a/net-misc/scponly/scponly-4.8-r1.ebuild +++ b/net-misc/scponly/scponly-4.8-r1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/scponly/scponly-4.8-r1.ebuild,v 1.3 2008/11/13 23:02:28 sbriesen Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/scponly/scponly-4.8-r1.ebuild,v 1.4 2008/11/15 16:04:33 sbriesen Exp $ inherit eutils multilib toolchain-funcs @@ -238,14 +238,18 @@ pkg_config() { for BIN in ${BINARIES}; do einfo "Install ${BIN}" install -o0 -g0 -m0755 -d "${myhome}$(dirname ${BIN})" - install "${BIN}" "${myhome}/${BIN}" + if [ "${BIN}" = "/bin/passwd" ]; then # needs suid + install -p -o0 -g0 -m04711 "${BIN}" "${myhome}/${BIN}" + else + install -p -o0 -g0 -m0755 "${BIN}" "${myhome}/${BIN}" + fi done # install libs for LIB in ${LIB_LIST}; do einfo "Install ${LIB}" install -o0 -g0 -m0755 -d "${myhome}$(dirname ${LIB})" - install "${LIB}" "${myhome}/${LIB}" + install -p -o0 -g0 -m0755 "${LIB}" "${myhome}/${LIB}" done # create ld.so.conf @@ -282,12 +286,4 @@ pkg_config() { sed -n "s|^\(${myuser}:[^:]*:[^:]*:\).*|\1|p" /etc/group ) > "${myhome}/etc/group" fi - - # fix permissions - #chown 0:0 "${myhome}" - #for DIR in .ssh .unison .subversion; do - # if [ -d "${myhome}/${DIR}" ]; then - # chown 0:0 "${myhome}/${DIR}" - # fi - #done } |