From: "Lars Wendler" <polynomial-c@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/sudo/
Date: Tue, 30 May 2017 15:22:06 +0000 (UTC) [thread overview]
Message-ID: <1496157710.dbe78e330b43f591c2d9697ee92095d219bc2e3f.polynomial-c@gentoo> (raw)
commit: dbe78e330b43f591c2d9697ee92095d219bc2e3f
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Tue May 30 15:21:50 2017 +0000
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Tue May 30 15:21:50 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dbe78e33
app-admin/sudo: Security cleanup.
Package-Manager: Portage-2.3.6, Repoman-2.3.2
app-admin/sudo/Manifest | 3 -
app-admin/sudo/sudo-1.8.18_p1.ebuild | 201 --------------------------------
app-admin/sudo/sudo-1.8.19_p2.ebuild | 201 --------------------------------
app-admin/sudo/sudo-1.8.20.ebuild | 216 -----------------------------------
4 files changed, 621 deletions(-)
diff --git a/app-admin/sudo/Manifest b/app-admin/sudo/Manifest
index 1f9157f79d9..93e7808824c 100644
--- a/app-admin/sudo/Manifest
+++ b/app-admin/sudo/Manifest
@@ -1,4 +1 @@
-DIST sudo-1.8.18p1.tar.gz 2822109 SHA256 e5a0471c721281a693025bbde33ebd9d3db43245d83ab8516bbfc23980379434 SHA512 8dceeb5024c4f94fcc15e75fa2fd164af5e0597734f95df43207738b3258c4d396e102faf2b6811e399f1cdbdbf617b87e5bfcc1e591ea6722f45d81d1098fe5 WHIRLPOOL 094c1232517706a6da4a0548f7ab5c0c7b9e12f8ce584db97d0c4793a38c4044538637f2834b9f3104326bd5b4b826d08ab79b1dc2c5b950de7d7f558685ef7b
-DIST sudo-1.8.19p2.tar.gz 2861855 SHA256 237e18e67c2ad59ecacfa4b7707198b09fcf84914621585a9bc670dcc31a52e0 SHA512 21c83403e7ff219a273b2c4873be0d858997558ca150bc8239379a9dfcc587fdd7c0c49cdf4cdc27dfd6dd45f9f089fa034b58bfcee07dceb4a481542251b3fc WHIRLPOOL 550ed115ea711d6ba9aa698cd988295b74327dd770d79b6852f9f3f00a1c0420bbdcce5cc7c49467e0cf8a57fc79dbcfc73edaf3ad697e06ba9fd48919fece0b
-DIST sudo-1.8.20.tar.gz 2930046 SHA256 9e97b8da859c6cc1b5b8c31db93002b750eae16af1bbda9140f8dd85b970e0e0 SHA512 c8cf640cd75fff88cf7c8b3a54a9a16771a9f24129b5c5787657c24336848c31abb8d8b9bafc7bfceb8f0b1f72112e15f9862b8fc337c1072eea05860f417dee WHIRLPOOL f2e409b18bee01780c21b9d97cdf65a34f763b5f9e380116f77b0d5ab3ddf6f46a80210b1c361e585fb2882ae17433817db7782e9b315b14ea1d7b53bfb0ab2a
DIST sudo-1.8.20p1.tar.gz 2930394 SHA256 9e980eb23a60dd11f0f452e672e705d7a386882bc230c6e8483050e03182db1d SHA512 b7d4c07a550da917029e31d15e734d9462f3565ee43eb5f6fd19463b54a2fa3f444381f0999d6d1ba643b65832056dd9177dad4452fa9f87f2542c223b13f258 WHIRLPOOL 7e652f70782d7c5240fa23198d16d94171510d7eb52df56ee667a3da17c26643257d4304c3bfdb94a77831b904ac1c4d4027f2d1140764ddcd130159a3c3a3d3
diff --git a/app-admin/sudo/sudo-1.8.18_p1.ebuild b/app-admin/sudo/sudo-1.8.18_p1.ebuild
deleted file mode 100644
index f01c3b37c7c..00000000000
--- a/app-admin/sudo/sudo-1.8.18_p1.ebuild
+++ /dev/null
@@ -1,201 +0,0 @@
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-inherit eutils pam multilib libtool
-
-MY_P=${P/_/}
-MY_P=${MY_P/beta/b}
-
-uri_prefix=
-case ${P} in
-*_beta*|*_rc*) uri_prefix=beta/ ;;
-esac
-
-DESCRIPTION="Allows users or groups to run commands as other users"
-HOMEPAGE="http://www.sudo.ws/"
-SRC_URI="http://www.sudo.ws/sudo/dist/${uri_prefix}${MY_P}.tar.gz
- ftp://ftp.sudo.ws/pub/sudo/${uri_prefix}${MY_P}.tar.gz"
-
-# Basic license is ISC-style as-is, some files are released under
-# 3-clause BSD license
-LICENSE="ISC BSD"
-SLOT="0"
-if [[ ${PV} != *_beta* ]] && [[ ${PV} != *_rc* ]] ; then
- KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~sparc-solaris"
-fi
-IUSE="ldap nls pam offensive selinux skey +sendmail"
-
-DEPEND="pam? ( virtual/pam )
- skey? ( >=sys-auth/skey-1.1.5-r1 )
- ldap? (
- >=net-nds/openldap-2.1.30-r1
- dev-libs/cyrus-sasl
- )
- sys-libs/zlib"
-RDEPEND="${DEPEND}
- selinux? ( sec-policy/selinux-sudo )
- ldap? ( dev-lang/perl )
- pam? ( sys-auth/pambase )
- >=app-misc/editor-wrapper-3
- virtual/editor
- sendmail? ( virtual/mta )"
-DEPEND="${DEPEND}
- sys-devel/bison"
-
-S=${WORKDIR}/${MY_P}
-
-REQUIRED_USE="pam? ( !skey ) skey? ( !pam )"
-
-MAKEOPTS+=" SAMPLES="
-
-src_prepare() {
- default
- elibtoolize
-}
-
-set_rootpath() {
- # FIXME: secure_path is a compile time setting. using ROOTPATH
- # is not perfect, env-update may invalidate this, but until it
- # is available as a sudoers setting this will have to do.
- einfo "Setting secure_path ..."
-
- # first extract the default ROOTPATH from build env
- ROOTPATH=$(unset ROOTPATH; . "${EPREFIX}"/etc/profile.env; echo "${ROOTPATH}")
- if [[ -z ${ROOTPATH} ]] ; then
- ewarn " Failed to find ROOTPATH, please report this"
- fi
-
- # then remove duplicate path entries
- cleanpath() {
- local newpath thisp IFS=:
- for thisp in $1 ; do
- if [[ :${newpath}: != *:${thisp}:* ]] ; then
- newpath+=:$thisp
- else
- einfo " Duplicate entry ${thisp} removed..."
- fi
- done
- ROOTPATH=${newpath#:}
- }
- cleanpath /bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/opt/bin${ROOTPATH:+:${ROOTPATH}}
-
- # finally, strip gcc paths #136027
- rmpath() {
- local e newpath thisp IFS=:
- for thisp in ${ROOTPATH} ; do
- for e ; do [[ $thisp == $e ]] && continue 2 ; done
- newpath+=:$thisp
- done
- ROOTPATH=${newpath#:}
- }
- rmpath '*/gcc-bin/*' '*/gnat-gcc-bin/*' '*/gnat-gcc/*'
-
- einfo "... done"
-}
-
-src_configure() {
- local ROOTPATH
- set_rootpath
-
- # audit: somebody got to explain me how I can test this before I
- # enable it.. - Diego
- # plugindir: autoconf code is crappy and does not delay evaluation
- # until `make` time, so we have to use a full path here rather than
- # basing off other values.
- econf \
- --enable-zlib=system \
- --with-secure-path="${ROOTPATH}" \
- --with-editor="${EPREFIX}"/usr/libexec/editor \
- --with-env-editor \
- $(use_with offensive insults) \
- $(use_with offensive all-insults) \
- $(use_with ldap ldap_conf_file /etc/ldap.conf.sudo) \
- $(use_with ldap) \
- $(use_enable nls) \
- $(use_with pam) \
- $(use_with skey) \
- $(use_with selinux) \
- $(use_with sendmail) \
- --without-opie \
- --without-linux-audit \
- --with-rundir="${EPREFIX}"/var/run/sudo \
- --with-vardir="${EPREFIX}"/var/db/sudo \
- --with-plugindir="${EPREFIX}"/usr/$(get_libdir)/sudo \
- --docdir="${EPREFIX}"/usr/share/doc/${PF}
-}
-
-src_install() {
- default
-
- if use ldap ; then
- dodoc README.LDAP
- dosbin plugins/sudoers/sudoers2ldif
-
- cat <<-EOF > "${T}"/ldap.conf.sudo
- # See ldap.conf(5) and README.LDAP for details
- # This file should only be readable by root
-
- # supported directives: host, port, ssl, ldap_version
- # uri, binddn, bindpw, sudoers_base, sudoers_debug
- # tls_{checkpeer,cacertfile,cacertdir,randfile,ciphers,cert,key}
- EOF
-
- insinto /etc
- doins "${T}"/ldap.conf.sudo
- fperms 0440 /etc/ldap.conf.sudo
-
- insinto /etc/openldap/schema
- newins doc/schema.OpenLDAP sudo.schema
- fi
-
- pamd_mimic system-auth sudo auth account session
-
- keepdir /var/db/sudo
- fperms 0700 /var/db/sudo
-
- # Don't install into /var/run as that is a tmpfs most of the time
- # (bug #504854)
- rm -rf "${D}"/var/run
-}
-
-pkg_postinst() {
- if use ldap ; then
- ewarn
- ewarn "sudo uses the /etc/ldap.conf.sudo file for ldap configuration."
- ewarn
- if grep -qs '^[[:space:]]*sudoers:' "${ROOT}"/etc/nsswitch.conf ; then
- ewarn "In 1.7 series, LDAP is no more consulted, unless explicitly"
- ewarn "configured in /etc/nsswitch.conf."
- ewarn
- ewarn "To make use of LDAP, add this line to your /etc/nsswitch.conf:"
- ewarn " sudoers: ldap files"
- ewarn
- fi
- fi
- if use prefix ; then
- ewarn
- ewarn "To use sudo, you need to change file ownership and permissions"
- ewarn "with root privileges, as follows:"
- ewarn
- ewarn " # chown root:root ${EPREFIX}/usr/bin/sudo"
- ewarn " # chown root:root ${EPREFIX}/usr/lib/sudo/sudoers.so"
- ewarn " # chown root:root ${EPREFIX}/etc/sudoers"
- ewarn " # chown root:root ${EPREFIX}/etc/sudoers.d"
- ewarn " # chown root:root ${EPREFIX}/var/db/sudo"
- ewarn " # chmod 4111 ${EPREFIX}/usr/bin/sudo"
- ewarn
- fi
-
- elog "To use the -A (askpass) option, you need to install a compatible"
- elog "password program from the following list. Starred packages will"
- elog "automatically register for the use with sudo (but will not force"
- elog "the -A option):"
- elog ""
- elog " [*] net-misc/ssh-askpass-fullscreen"
- elog " net-misc/x11-ssh-askpass"
- elog ""
- elog "You can override the choice by setting the SUDO_ASKPASS environmnent"
- elog "variable to the program you want to use."
-}
diff --git a/app-admin/sudo/sudo-1.8.19_p2.ebuild b/app-admin/sudo/sudo-1.8.19_p2.ebuild
deleted file mode 100644
index 5103d4888ee..00000000000
--- a/app-admin/sudo/sudo-1.8.19_p2.ebuild
+++ /dev/null
@@ -1,201 +0,0 @@
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-inherit eutils pam multilib libtool
-
-MY_P=${P/_/}
-MY_P=${MY_P/beta/b}
-
-uri_prefix=
-case ${P} in
-*_beta*|*_rc*) uri_prefix=beta/ ;;
-esac
-
-DESCRIPTION="Allows users or groups to run commands as other users"
-HOMEPAGE="http://www.sudo.ws/"
-SRC_URI="http://www.sudo.ws/sudo/dist/${uri_prefix}${MY_P}.tar.gz
- ftp://ftp.sudo.ws/pub/sudo/${uri_prefix}${MY_P}.tar.gz"
-
-# Basic license is ISC-style as-is, some files are released under
-# 3-clause BSD license
-LICENSE="ISC BSD"
-SLOT="0"
-if [[ ${PV} != *_beta* ]] && [[ ${PV} != *_rc* ]] ; then
- KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~sparc-solaris"
-fi
-IUSE="ldap nls pam offensive selinux skey +sendmail"
-
-DEPEND="pam? ( virtual/pam )
- skey? ( >=sys-auth/skey-1.1.5-r1 )
- ldap? (
- >=net-nds/openldap-2.1.30-r1
- dev-libs/cyrus-sasl
- )
- sys-libs/zlib"
-RDEPEND="${DEPEND}
- selinux? ( sec-policy/selinux-sudo )
- ldap? ( dev-lang/perl )
- pam? ( sys-auth/pambase )
- >=app-misc/editor-wrapper-3
- virtual/editor
- sendmail? ( virtual/mta )"
-DEPEND="${DEPEND}
- sys-devel/bison"
-
-S=${WORKDIR}/${MY_P}
-
-REQUIRED_USE="pam? ( !skey ) skey? ( !pam )"
-
-MAKEOPTS+=" SAMPLES="
-
-src_prepare() {
- default
- elibtoolize
-}
-
-set_rootpath() {
- # FIXME: secure_path is a compile time setting. using ROOTPATH
- # is not perfect, env-update may invalidate this, but until it
- # is available as a sudoers setting this will have to do.
- einfo "Setting secure_path ..."
-
- # first extract the default ROOTPATH from build env
- ROOTPATH=$(unset ROOTPATH; . "${EPREFIX}"/etc/profile.env; echo "${ROOTPATH}")
- if [[ -z ${ROOTPATH} ]] ; then
- ewarn " Failed to find ROOTPATH, please report this"
- fi
-
- # then remove duplicate path entries
- cleanpath() {
- local newpath thisp IFS=:
- for thisp in $1 ; do
- if [[ :${newpath}: != *:${thisp}:* ]] ; then
- newpath+=:$thisp
- else
- einfo " Duplicate entry ${thisp} removed..."
- fi
- done
- ROOTPATH=${newpath#:}
- }
- cleanpath /bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/opt/bin${ROOTPATH:+:${ROOTPATH}}
-
- # finally, strip gcc paths #136027
- rmpath() {
- local e newpath thisp IFS=:
- for thisp in ${ROOTPATH} ; do
- for e ; do [[ $thisp == $e ]] && continue 2 ; done
- newpath+=:$thisp
- done
- ROOTPATH=${newpath#:}
- }
- rmpath '*/gcc-bin/*' '*/gnat-gcc-bin/*' '*/gnat-gcc/*'
-
- einfo "... done"
-}
-
-src_configure() {
- local ROOTPATH
- set_rootpath
-
- # audit: somebody got to explain me how I can test this before I
- # enable it.. - Diego
- # plugindir: autoconf code is crappy and does not delay evaluation
- # until `make` time, so we have to use a full path here rather than
- # basing off other values.
- econf \
- --enable-zlib=system \
- --with-secure-path="${ROOTPATH}" \
- --with-editor="${EPREFIX}"/usr/libexec/editor \
- --with-env-editor \
- $(use_with offensive insults) \
- $(use_with offensive all-insults) \
- $(use_with ldap ldap_conf_file /etc/ldap.conf.sudo) \
- $(use_with ldap) \
- $(use_enable nls) \
- $(use_with pam) \
- $(use_with skey) \
- $(use_with selinux) \
- $(use_with sendmail) \
- --without-opie \
- --without-linux-audit \
- --with-rundir="${EPREFIX}"/var/run/sudo \
- --with-vardir="${EPREFIX}"/var/db/sudo \
- --with-plugindir="${EPREFIX}"/usr/$(get_libdir)/sudo \
- --docdir="${EPREFIX}"/usr/share/doc/${PF}
-}
-
-src_install() {
- default
-
- if use ldap ; then
- dodoc README.LDAP
- dosbin plugins/sudoers/sudoers2ldif
-
- cat <<-EOF > "${T}"/ldap.conf.sudo
- # See ldap.conf(5) and README.LDAP for details
- # This file should only be readable by root
-
- # supported directives: host, port, ssl, ldap_version
- # uri, binddn, bindpw, sudoers_base, sudoers_debug
- # tls_{checkpeer,cacertfile,cacertdir,randfile,ciphers,cert,key}
- EOF
-
- insinto /etc
- doins "${T}"/ldap.conf.sudo
- fperms 0440 /etc/ldap.conf.sudo
-
- insinto /etc/openldap/schema
- newins doc/schema.OpenLDAP sudo.schema
- fi
-
- pamd_mimic system-auth sudo auth account session
-
- keepdir /var/db/sudo
- fperms 0700 /var/db/sudo
-
- # Don't install into /var/run as that is a tmpfs most of the time
- # (bug #504854)
- rm -rf "${D}"/var/run
-}
-
-pkg_postinst() {
- if use ldap ; then
- ewarn
- ewarn "sudo uses the /etc/ldap.conf.sudo file for ldap configuration."
- ewarn
- if grep -qs '^[[:space:]]*sudoers:' "${ROOT}"/etc/nsswitch.conf ; then
- ewarn "In 1.7 series, LDAP is no more consulted, unless explicitly"
- ewarn "configured in /etc/nsswitch.conf."
- ewarn
- ewarn "To make use of LDAP, add this line to your /etc/nsswitch.conf:"
- ewarn " sudoers: ldap files"
- ewarn
- fi
- fi
- if use prefix ; then
- ewarn
- ewarn "To use sudo, you need to change file ownership and permissions"
- ewarn "with root privileges, as follows:"
- ewarn
- ewarn " # chown root:root ${EPREFIX}/usr/bin/sudo"
- ewarn " # chown root:root ${EPREFIX}/usr/lib/sudo/sudoers.so"
- ewarn " # chown root:root ${EPREFIX}/etc/sudoers"
- ewarn " # chown root:root ${EPREFIX}/etc/sudoers.d"
- ewarn " # chown root:root ${EPREFIX}/var/db/sudo"
- ewarn " # chmod 4111 ${EPREFIX}/usr/bin/sudo"
- ewarn
- fi
-
- elog "To use the -A (askpass) option, you need to install a compatible"
- elog "password program from the following list. Starred packages will"
- elog "automatically register for the use with sudo (but will not force"
- elog "the -A option):"
- elog ""
- elog " [*] net-misc/ssh-askpass-fullscreen"
- elog " net-misc/x11-ssh-askpass"
- elog ""
- elog "You can override the choice by setting the SUDO_ASKPASS environmnent"
- elog "variable to the program you want to use."
-}
diff --git a/app-admin/sudo/sudo-1.8.20.ebuild b/app-admin/sudo/sudo-1.8.20.ebuild
deleted file mode 100644
index 163cd385023..00000000000
--- a/app-admin/sudo/sudo-1.8.20.ebuild
+++ /dev/null
@@ -1,216 +0,0 @@
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-inherit eutils pam multilib libtool
-
-MY_P=${P/_/}
-MY_P=${MY_P/beta/b}
-
-uri_prefix=
-case ${P} in
- *_beta*|*_rc*) uri_prefix=beta/ ;;
-esac
-
-DESCRIPTION="Allows users or groups to run commands as other users"
-HOMEPAGE="http://www.sudo.ws/"
-SRC_URI="http://www.sudo.ws/sudo/dist/${uri_prefix}${MY_P}.tar.gz
- ftp://ftp.sudo.ws/pub/sudo/${uri_prefix}${MY_P}.tar.gz"
-
-# Basic license is ISC-style as-is, some files are released under
-# 3-clause BSD license
-LICENSE="ISC BSD"
-SLOT="0"
-if [[ ${PV} != *_beta* ]] && [[ ${PV} != *_rc* ]] ; then
- KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~sparc-solaris"
-fi
-IUSE="gcrypt ldap nls pam offensive openssl selinux skey +sendmail"
-
-CDEPEND="
- gcrypt? ( dev-libs/libgcrypt:= )
- openssl? ( dev-libs/openssl:0= )
- pam? ( virtual/pam )
- skey? ( >=sys-auth/skey-1.1.5-r1 )
- ldap? (
- >=net-nds/openldap-2.1.30-r1
- dev-libs/cyrus-sasl
- )
- sys-libs/zlib
-"
-RDEPEND="
- ${CDEPEND}
- selinux? ( sec-policy/selinux-sudo )
- ldap? ( dev-lang/perl )
- pam? ( sys-auth/pambase )
- >=app-misc/editor-wrapper-3
- virtual/editor
- sendmail? ( virtual/mta )
-"
-DEPEND="
- ${CDEPEND}
- sys-devel/bison
-"
-
-S="${WORKDIR}/${MY_P}"
-
-REQUIRED_USE="
- pam? ( !skey )
- skey? ( !pam )
- ?? ( gcrypt openssl )
-"
-
-MAKEOPTS+=" SAMPLES="
-
-src_prepare() {
- default
- elibtoolize
-}
-
-set_rootpath() {
- # FIXME: secure_path is a compile time setting. using ROOTPATH
- # is not perfect, env-update may invalidate this, but until it
- # is available as a sudoers setting this will have to do.
- einfo "Setting secure_path ..."
-
- # first extract the default ROOTPATH from build env
- ROOTPATH=$(unset ROOTPATH; . "${EPREFIX}"/etc/profile.env; echo "${ROOTPATH}")
- if [[ -z ${ROOTPATH} ]] ; then
- ewarn " Failed to find ROOTPATH, please report this"
- fi
-
- # then remove duplicate path entries
- cleanpath() {
- local newpath thisp IFS=:
- for thisp in $1 ; do
- if [[ :${newpath}: != *:${thisp}:* ]] ; then
- newpath+=:$thisp
- else
- einfo " Duplicate entry ${thisp} removed..."
- fi
- done
- ROOTPATH=${newpath#:}
- }
- cleanpath /bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/opt/bin${ROOTPATH:+:${ROOTPATH}}
-
- # finally, strip gcc paths #136027
- rmpath() {
- local e newpath thisp IFS=:
- for thisp in ${ROOTPATH} ; do
- for e ; do [[ $thisp == $e ]] && continue 2 ; done
- newpath+=:$thisp
- done
- ROOTPATH=${newpath#:}
- }
- rmpath '*/gcc-bin/*' '*/gnat-gcc-bin/*' '*/gnat-gcc/*'
-
- einfo "... done"
-}
-
-src_configure() {
- local ROOTPATH
- set_rootpath
-
- # audit: somebody got to explain me how I can test this before I
- # enable it.. - Diego
- # plugindir: autoconf code is crappy and does not delay evaluation
- # until `make` time, so we have to use a full path here rather than
- # basing off other values.
- myeconfargs=(
- --enable-zlib=system
- --with-editor="${EPREFIX}"/usr/libexec/editor
- --with-env-editor
- --with-plugindir="${EPREFIX}"/usr/$(get_libdir)/sudo
- --with-rundir="${EPREFIX}"/var/run/sudo
- --with-secure-path="${ROOTPATH}"
- --with-vardir="${EPREFIX}"/var/db/sudo
- --without-linux-audit
- --without-opie
- $(use_enable gcrypt)
- $(use_enable nls)
- $(use_enable openssl)
- $(use_with offensive insults)
- $(use_with offensive all-insults)
- $(use_with ldap ldap_conf_file /etc/ldap.conf.sudo)
- $(use_with ldap)
- $(use_with pam)
- $(use_with skey)
- $(use_with selinux)
- $(use_with sendmail)
- )
- econf "${myeconfargs[@]}"
-}
-
-src_install() {
- default
-
- if use ldap ; then
- dodoc README.LDAP
- dosbin plugins/sudoers/sudoers2ldif
-
- cat <<-EOF > "${T}"/ldap.conf.sudo
- # See ldap.conf(5) and README.LDAP for details
- # This file should only be readable by root
-
- # supported directives: host, port, ssl, ldap_version
- # uri, binddn, bindpw, sudoers_base, sudoers_debug
- # tls_{checkpeer,cacertfile,cacertdir,randfile,ciphers,cert,key}
- EOF
-
- insinto /etc
- doins "${T}"/ldap.conf.sudo
- fperms 0440 /etc/ldap.conf.sudo
-
- insinto /etc/openldap/schema
- newins doc/schema.OpenLDAP sudo.schema
- fi
-
- pamd_mimic system-auth sudo auth account session
-
- keepdir /var/db/sudo
- fperms 0700 /var/db/sudo
-
- # Don't install into /var/run as that is a tmpfs most of the time
- # (bug #504854)
- rm -rf "${D}"/var/run
-}
-
-pkg_postinst() {
- if use ldap ; then
- ewarn
- ewarn "sudo uses the /etc/ldap.conf.sudo file for ldap configuration."
- ewarn
- if grep -qs '^[[:space:]]*sudoers:' "${ROOT}"/etc/nsswitch.conf ; then
- ewarn "In 1.7 series, LDAP is no more consulted, unless explicitly"
- ewarn "configured in /etc/nsswitch.conf."
- ewarn
- ewarn "To make use of LDAP, add this line to your /etc/nsswitch.conf:"
- ewarn " sudoers: ldap files"
- ewarn
- fi
- fi
- if use prefix ; then
- ewarn
- ewarn "To use sudo, you need to change file ownership and permissions"
- ewarn "with root privileges, as follows:"
- ewarn
- ewarn " # chown root:root ${EPREFIX}/usr/bin/sudo"
- ewarn " # chown root:root ${EPREFIX}/usr/lib/sudo/sudoers.so"
- ewarn " # chown root:root ${EPREFIX}/etc/sudoers"
- ewarn " # chown root:root ${EPREFIX}/etc/sudoers.d"
- ewarn " # chown root:root ${EPREFIX}/var/db/sudo"
- ewarn " # chmod 4111 ${EPREFIX}/usr/bin/sudo"
- ewarn
- fi
-
- elog "To use the -A (askpass) option, you need to install a compatible"
- elog "password program from the following list. Starred packages will"
- elog "automatically register for the use with sudo (but will not force"
- elog "the -A option):"
- elog ""
- elog " [*] net-misc/ssh-askpass-fullscreen"
- elog " net-misc/x11-ssh-askpass"
- elog ""
- elog "You can override the choice by setting the SUDO_ASKPASS environmnent"
- elog "variable to the program you want to use."
-}
next reply other threads:[~2017-05-30 15:22 UTC|newest]
Thread overview: 418+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-30 15:22 Lars Wendler [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-02-23 1:45 [gentoo-commits] repo/gentoo:master commit in: app-admin/sudo/ Sam James
2025-02-23 1:45 Sam James
2025-01-24 15:33 Matt Turner
2025-01-12 13:48 Sam James
2025-01-12 13:16 Sam James
2024-12-01 15:06 Sam James
2024-12-01 12:58 Sam James
2024-11-16 9:19 Sam James
2024-11-13 20:14 Sam James
2024-10-31 14:57 Mike Gilbert
2024-10-31 14:55 Mike Gilbert
2024-10-31 14:55 Mike Gilbert
2024-02-02 3:58 Sam James
2024-01-27 17:06 Arthur Zamarin
2024-01-24 11:11 Sam James
2024-01-18 0:28 Sam James
2024-01-17 6:30 Arthur Zamarin
2024-01-17 6:30 Arthur Zamarin
2024-01-17 6:30 Arthur Zamarin
2024-01-17 6:30 Arthur Zamarin
2024-01-17 5:55 Sam James
2024-01-17 5:55 Sam James
2024-01-17 5:50 Sam James
2024-01-17 5:50 Sam James
2024-01-02 6:00 Sam James
2023-12-28 4:58 Sam James
2023-12-23 19:56 Arthur Zamarin
2023-12-21 0:07 Ionen Wolkens
2023-12-16 11:10 Sam James
2023-12-15 12:32 Arthur Zamarin
2023-12-15 11:58 Arthur Zamarin
2023-12-15 8:29 Sam James
2023-12-15 7:06 Sam James
2023-12-15 7:06 Sam James
2023-12-15 5:15 Sam James
2023-12-01 20:29 Arthur Zamarin
2023-11-12 4:24 Sam James
2023-09-24 14:22 Sam James
2023-09-14 22:54 Sam James
2023-08-20 5:43 Sam James
2023-08-19 11:38 Sam James
2023-08-19 11:38 Sam James
2023-08-19 9:29 Sam James
2023-08-19 7:42 Arthur Zamarin
2023-08-19 6:59 Arthur Zamarin
2023-08-19 6:33 Sam James
2023-08-19 6:33 Sam James
2023-07-26 3:13 Sam James
2023-07-20 2:26 Sam James
2023-07-20 2:26 Sam James
2023-07-12 7:00 Sam James
2023-06-28 22:38 Sam James
2023-06-28 6:59 Sam James
2023-06-21 21:46 Sam James
2023-06-17 21:03 Sam James
2023-06-17 15:13 Sam James
2023-06-17 10:42 Arthur Zamarin
2023-06-17 7:43 Arthur Zamarin
2023-06-17 6:12 Sam James
2023-06-17 6:12 Sam James
2023-06-17 5:57 Sam James
2023-04-08 8:14 Arthur Zamarin
2023-04-07 10:07 Sam James
2023-04-07 6:38 Sam James
2023-03-06 3:57 Sam James
2023-03-06 3:57 Sam James
2023-03-06 3:57 Sam James
2023-02-28 1:30 Sam James
2023-02-19 12:23 Sam James
2023-02-15 1:39 Sam James
2023-01-20 6:45 Arthur Zamarin
2023-01-20 6:45 Arthur Zamarin
2023-01-20 3:54 Sam James
2023-01-20 3:54 Sam James
2023-01-20 1:34 Sam James
2023-01-20 1:34 Sam James
2023-01-20 1:17 Sam James
2023-01-20 1:17 Sam James
2022-11-18 18:26 Arthur Zamarin
2022-11-18 18:06 Arthur Zamarin
2022-11-18 7:07 Jakov Smolić
2022-11-08 5:49 Sam James
2022-11-06 8:17 Agostino Sarubbo
2022-11-06 6:15 Sam James
2022-11-06 6:15 Sam James
2022-11-06 6:15 Sam James
2022-10-24 11:47 Sam James
2022-09-23 0:59 Sam James
2022-09-23 0:59 Sam James
2022-09-23 0:42 Sam James
2022-09-21 12:26 Agostino Sarubbo
2022-09-16 18:58 Arthur Zamarin
2022-09-16 13:52 Arthur Zamarin
2022-09-07 1:50 Sam James
2022-09-06 21:44 Jakov Smolić
2022-09-06 21:37 Sam James
2022-09-06 21:35 Sam James
2022-09-06 21:35 Sam James
2022-06-21 21:08 Sam James
2022-06-14 11:53 Sam James
2022-06-08 23:41 Sam James
2022-06-07 2:02 Sam James
2022-05-05 10:48 WANG Xuerui
2022-05-05 7:10 WANG Xuerui
2022-05-05 7:10 WANG Xuerui
2022-05-03 18:48 Arthur Zamarin
2022-05-03 18:48 Arthur Zamarin
2022-05-03 17:58 Arthur Zamarin
2022-05-03 17:37 Arthur Zamarin
2022-04-29 19:21 Sam James
2022-04-29 9:09 Sam James
2022-04-29 8:29 Jakov Smolić
2022-04-29 8:29 Jakov Smolić
2022-03-25 18:49 Sam James
2022-03-25 18:49 Sam James
2022-03-23 0:14 Sam James
2022-03-04 0:59 Sam James
2022-01-29 20:37 David Seifert
2022-01-28 16:46 Mike Gilbert
2022-01-28 3:41 Sam James
2021-11-08 6:22 Sam James
2021-11-06 20:43 Sam James
2021-10-31 22:51 Sam James
2021-10-31 5:59 Sam James
2021-10-30 17:32 Sam James
2021-10-29 18:32 Sam James
2021-10-29 18:32 Sam James
2021-10-29 11:47 Sam James
2021-10-29 6:01 Agostino Sarubbo
2021-10-29 5:52 Agostino Sarubbo
2021-10-03 11:28 David Seifert
2021-09-21 17:40 Lars Wendler
2021-09-16 22:06 Sam James
2021-09-16 22:06 Sam James
2021-09-13 21:44 Lars Wendler
2021-09-13 21:44 Lars Wendler
2021-09-09 8:51 Lars Wendler
2021-09-09 8:51 Lars Wendler
2021-07-27 20:43 Lars Wendler
2021-07-22 3:42 Georgy Yakovlev
2021-07-22 3:42 Georgy Yakovlev
2021-06-30 18:40 Sam James
2021-06-14 9:19 David Seifert
2021-06-12 10:35 Lars Wendler
2021-05-29 19:03 David Seifert
2021-05-15 19:14 Sergei Trofimovich
2021-05-14 9:35 Agostino Sarubbo
2021-05-14 9:32 Agostino Sarubbo
2021-05-13 21:17 Sam James
2021-05-13 21:15 Sam James
2021-05-13 21:15 Sam James
2021-05-13 21:15 Sam James
2021-05-13 18:54 Sam James
2021-05-12 13:10 Lars Wendler
2021-05-10 11:33 Lars Wendler
2021-04-30 9:33 Mikle Kolyada
2021-03-21 15:12 Mike Gilbert
2021-03-21 15:06 Mike Gilbert
2021-03-15 20:38 Lars Wendler
2021-03-14 15:53 Lars Wendler
2021-03-11 8:10 Lars Wendler
2021-01-28 0:07 Lars Wendler
2021-01-26 21:02 Mikle Kolyada
2021-01-26 21:02 Mikle Kolyada
2021-01-26 18:20 Lars Wendler
2021-01-26 18:20 Lars Wendler
2021-01-22 17:31 Mikle Kolyada
2021-01-18 2:55 Sam James
2021-01-18 2:55 Sam James
2021-01-12 21:14 Sergei Trofimovich
2021-01-12 19:00 Sam James
2021-01-12 12:04 Sam James
2021-01-12 12:03 Sam James
2021-01-12 7:52 Lars Wendler
2021-01-11 19:20 Sam James
2021-01-11 15:59 Lars Wendler
2020-12-20 18:15 Lars Wendler
2020-12-20 18:15 Lars Wendler
2020-12-18 11:39 Lars Wendler
2020-11-30 17:18 Lars Wendler
2020-11-25 11:11 Lars Wendler
2020-11-24 17:32 Lars Wendler
2020-11-14 9:24 Mikle Kolyada
2020-11-12 0:35 Thomas Deutschmann
2020-11-04 14:02 Mike Gilbert
2020-11-04 14:02 Mike Gilbert
2020-11-04 10:42 Sergei Trofimovich
2020-11-04 9:21 Sam James
2020-11-04 8:16 Sergei Trofimovich
2020-11-04 7:58 Sergei Trofimovich
2020-11-03 22:47 Sergei Trofimovich
2020-11-03 12:53 Sam James
2020-11-03 12:52 Sam James
2020-09-24 6:13 Lars Wendler
2020-09-22 7:09 Lars Wendler
2020-09-20 20:38 Lars Wendler
2020-09-18 10:30 Lars Wendler
2020-09-01 20:53 Sam James
2020-08-29 14:48 Thomas Deutschmann
2020-08-29 0:42 Sam James
2020-08-28 22:21 Sergei Trofimovich
2020-08-27 18:22 Sergei Trofimovich
2020-08-25 1:11 Matt Turner
2020-08-22 5:43 Agostino Sarubbo
2020-08-21 18:20 Agostino Sarubbo
2020-08-10 4:49 Lars Wendler
2020-08-10 4:49 Lars Wendler
2020-07-22 21:44 Lars Wendler
2020-07-16 15:51 Lars Wendler
2020-06-19 7:36 Lars Wendler
2020-06-17 8:38 Lars Wendler
2020-06-13 12:31 Lars Wendler
2020-05-12 17:17 Lars Wendler
2020-05-12 10:01 Lars Wendler
2020-05-09 20:29 Lars Wendler
2020-05-07 8:55 Lars Wendler
2020-05-06 7:18 Lars Wendler
2020-04-11 12:48 Lars Wendler
2020-04-11 12:48 Lars Wendler
2020-03-30 15:21 Thomas Deutschmann
2020-03-17 19:21 Mart Raudsepp
2020-03-15 13:13 Mikle Kolyada
2020-03-15 10:55 Lars Wendler
2020-03-04 8:07 Agostino Sarubbo
2020-03-03 16:26 Agostino Sarubbo
2020-03-03 8:02 Agostino Sarubbo
2020-03-03 7:55 Agostino Sarubbo
2020-03-03 7:54 Agostino Sarubbo
2020-03-03 7:53 Agostino Sarubbo
2020-03-02 18:26 Sergei Trofimovich
2020-03-02 15:22 Agostino Sarubbo
2020-01-31 14:00 Lars Wendler
2020-01-01 12:09 Lars Wendler
2019-12-28 11:18 Lars Wendler
2019-12-21 21:04 Lars Wendler
2019-11-22 10:33 Lars Wendler
2019-11-22 10:33 Lars Wendler
2019-11-14 11:55 Agostino Sarubbo
2019-11-09 22:55 Matt Turner
2019-11-08 15:43 Mike Gilbert
2019-11-06 15:10 Lars Wendler
2019-11-06 15:10 Lars Wendler
2019-11-02 8:11 Mikle Kolyada
2019-11-02 8:11 Mikle Kolyada
2019-11-01 10:53 Mikle Kolyada
2019-10-29 9:05 Lars Wendler
2019-10-28 23:43 Lars Wendler
2019-10-24 10:22 Lars Wendler
2019-10-18 1:56 Aaron Bauman
2019-10-17 10:29 Agostino Sarubbo
2019-10-17 10:25 Agostino Sarubbo
2019-10-17 9:28 Agostino Sarubbo
2019-10-16 22:14 Lars Wendler
2019-10-16 8:00 Lars Wendler
2019-10-16 8:00 Lars Wendler
2019-10-15 18:17 Sergei Trofimovich
2019-10-14 23:36 Richard Freeman
2019-10-14 20:55 Thomas Deutschmann
2019-10-14 15:53 Thomas Deutschmann
2019-10-12 18:34 Mikle Kolyada
2019-10-06 18:45 Lars Wendler
2019-09-25 22:38 Lars Wendler
2019-09-25 22:38 Lars Wendler
2019-08-23 23:20 Lars Wendler
2019-08-23 10:31 Mikle Kolyada
2019-08-23 10:31 Mikle Kolyada
2019-08-23 10:31 Mikle Kolyada
2019-08-14 6:47 Lars Wendler
2019-08-09 16:11 Sergei Trofimovich
2019-08-06 15:24 Agostino Sarubbo
2019-08-06 11:44 Agostino Sarubbo
2019-08-06 10:40 Agostino Sarubbo
2019-08-06 8:01 Agostino Sarubbo
2019-08-06 7:51 Agostino Sarubbo
2019-08-06 7:22 Agostino Sarubbo
2019-08-05 22:04 Sergei Trofimovich
2019-08-05 11:42 Mikle Kolyada
2019-08-05 0:34 Aaron Bauman
2019-08-04 9:43 Lars Wendler
2019-08-04 9:43 Lars Wendler
2019-08-04 9:43 Lars Wendler
2019-03-02 17:50 Thomas Deutschmann
2019-03-02 17:49 Thomas Deutschmann
2019-02-16 21:10 Lars Wendler
2019-02-16 21:10 Lars Wendler
2019-02-16 21:10 Lars Wendler
2019-01-13 1:10 Lars Wendler
2019-01-13 1:10 Lars Wendler
2018-12-28 8:23 Mikle Kolyada
2018-12-28 8:22 Mikle Kolyada
2018-11-28 16:05 Tobias Klausmann
2018-11-18 10:41 Sergei Trofimovich
2018-11-18 10:38 Sergei Trofimovich
2018-11-14 9:54 Lars Wendler
2018-11-11 22:30 Lars Wendler
2018-11-10 21:16 Mikle Kolyada
2018-11-10 21:15 Mikle Kolyada
2018-11-09 17:48 Mikle Kolyada
2018-11-07 23:44 Thomas Deutschmann
2018-11-07 23:28 Sergei Trofimovich
2018-11-07 22:59 Sergei Trofimovich
2018-11-07 22:41 Sergei Trofimovich
2018-11-07 12:35 Lars Wendler
2018-10-06 17:32 Mikle Kolyada
2018-10-05 21:38 Mikle Kolyada
2018-09-13 8:18 Lars Wendler
2018-09-04 6:43 Lars Wendler
2018-09-04 6:43 Lars Wendler
2018-08-23 2:46 Mikle Kolyada
2018-08-23 1:41 Thomas Deutschmann
2018-08-22 21:54 Mart Raudsepp
2018-08-21 23:49 Mikle Kolyada
2018-08-21 18:42 Sergei Trofimovich
2018-08-20 16:01 Thomas Deutschmann
2018-08-20 16:01 Thomas Deutschmann
2018-08-20 16:01 Thomas Deutschmann
2018-08-14 8:04 Lars Wendler
2018-08-09 15:39 Lars Wendler
2018-07-08 9:18 Lars Wendler
2018-07-08 9:18 Lars Wendler
2018-07-08 9:18 Lars Wendler
2018-06-22 21:29 William Hubbs
2018-05-10 17:09 Mikle Kolyada
2018-05-10 6:30 Sergei Trofimovich
2018-05-03 7:28 Mart Raudsepp
2018-05-01 17:32 Lars Wendler
2018-04-30 18:10 Lars Wendler
2018-04-30 18:10 Lars Wendler
2018-04-25 7:57 Lars Wendler
2018-04-22 6:33 Matt Turner
2018-04-21 11:38 Mikle Kolyada
2018-04-20 0:22 Lars Wendler
2018-04-18 21:39 Sergei Trofimovich
2018-04-17 13:48 Lars Wendler
2018-04-15 3:37 Matt Turner
2018-04-11 21:22 Sergei Trofimovich
2018-04-11 20:43 Thomas Deutschmann
2018-04-11 18:06 Lars Wendler
2018-04-11 11:02 Lars Wendler
2018-04-10 11:41 Mikle Kolyada
2018-04-10 9:16 Lars Wendler
2018-01-26 18:55 Mike Gilbert
2018-01-16 22:08 Lars Wendler
2018-01-13 12:42 Lars Wendler
2018-01-12 4:10 Mike Frysinger
2018-01-02 13:43 Lars Wendler
2017-12-14 18:29 Lars Wendler
2017-10-17 14:28 Lars Wendler
2017-09-08 10:08 Lars Wendler
2017-09-08 10:08 Lars Wendler
2017-09-04 8:38 Lars Wendler
2017-09-02 20:36 Lars Wendler
2017-08-24 8:11 Lars Wendler
2017-08-22 13:18 Lars Wendler
2017-08-17 6:44 Lars Wendler
2017-07-31 14:23 Lars Wendler
2017-06-03 11:39 Lars Wendler
2017-06-03 11:39 Lars Wendler
2017-06-01 9:20 Lars Wendler
2017-05-30 15:14 Lars Wendler
2017-05-11 22:00 Lars Wendler
2017-05-06 23:43 Lars Wendler
2017-05-03 8:49 Lars Wendler
2017-04-28 0:28 Lars Wendler
2017-04-27 14:00 Lars Wendler
2017-03-27 13:37 Lars Wendler
2017-03-27 12:36 Lars Wendler
2017-01-26 23:36 Lars Wendler
2017-01-19 14:14 Mike Frysinger
2017-01-16 19:56 Tobias Klausmann
2017-01-14 17:00 Lars Wendler
2017-01-14 12:59 Lars Wendler
2017-01-10 6:55 Jeroen Roovers
2016-12-25 10:23 Agostino Sarubbo
2016-12-25 10:14 Agostino Sarubbo
2016-12-25 10:09 Agostino Sarubbo
2016-12-22 8:57 Agostino Sarubbo
2016-12-21 18:56 Tobias Klausmann
2016-12-21 8:17 Lars Wendler
2016-12-20 9:56 Lars Wendler
2016-12-20 9:56 Lars Wendler
2016-12-09 9:13 Lars Wendler
2016-12-09 9:13 Lars Wendler
2016-12-07 8:32 Mike Frysinger
2016-11-23 9:19 Lars Wendler
2016-11-23 9:19 Lars Wendler
2016-10-12 8:59 Lars Wendler
2016-09-21 7:41 Lars Wendler
2016-09-21 7:40 Lars Wendler
2016-09-16 7:41 Lars Wendler
2016-09-15 10:14 Lars Wendler
2016-09-13 19:07 Lars Wendler
2016-09-09 8:00 Lars Wendler
2016-08-28 0:34 Anthony G. Basile
2016-07-24 10:22 Jeroen Roovers
2016-07-23 14:07 Lars Wendler
2016-07-08 14:50 Markus Meier
2016-07-04 11:44 Tobias Klausmann
2016-07-02 10:16 Lars Wendler
2016-03-17 19:58 Lars Wendler
2016-03-17 19:58 Lars Wendler
2015-11-15 18:26 Matt Turner
2015-11-14 16:50 Markus Meier
2015-11-07 23:12 Mikle Kolyada
2015-11-06 4:21 Jeroen Roovers
2015-11-05 10:58 Agostino Sarubbo
2015-11-04 14:26 Agostino Sarubbo
2015-11-03 14:55 Agostino Sarubbo
2015-11-03 14:55 Agostino Sarubbo
2015-11-02 10:14 Lars Wendler
2015-11-02 8:35 Sergey Popov
2015-11-02 8:07 Mikle Kolyada
2015-11-02 5:20 Jeroen Roovers
2015-11-01 19:06 Lars Wendler
2015-11-01 19:06 Lars Wendler
2015-10-13 14:16 Patrice Clement
2015-10-13 12:53 Patrice Clement
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1496157710.dbe78e330b43f591c2d9697ee92095d219bc2e3f.polynomial-c@gentoo \
--to=polynomial-c@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox