aboutsummaryrefslogtreecommitdiffstats
path: root/main/linux-pam
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-09-16 15:00:54 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-09-16 15:00:54 +0000
commit28dd552bd190b6c109fe1a82dd6e25d9159e37aa (patch)
tree17eb406f3b0771d3f812232557b2d5a0fee8fb8b /main/linux-pam
parent9e9eb3fb99d0846d32a5787b2bfbbc1cad50facb (diff)
downloadaports-28dd552bd190b6c109fe1a82dd6e25d9159e37aa.tar.bz2
aports-28dd552bd190b6c109fe1a82dd6e25d9159e37aa.tar.xz
main/linux-pam: make unix_chkpwd utility suid shadow
ref #3349
Diffstat (limited to 'main/linux-pam')
-rw-r--r--main/linux-pam/APKBUILD7
1 files changed, 6 insertions, 1 deletions
diff --git a/main/linux-pam/APKBUILD b/main/linux-pam/APKBUILD
index 8867c6cfce..5b71afcd5f 100644
--- a/main/linux-pam/APKBUILD
+++ b/main/linux-pam/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=linux-pam
pkgver=1.1.8
-pkgrel=1
+pkgrel=2
pkgdesc="pluggable authentication modules for linux"
url="http://www.kernel.org/pub/linux/libs/pam"
arch="all"
@@ -11,6 +11,7 @@ depends=
depends_dev="gettext-dev"
makedepends="$depends_dev bison flex-dev autoconf automake libtool"
install=""
+options="suid"
subpackages="$pkgname-dev $pkgname-doc"
source="https://fedorahosted.org/releases/l/i/linux-pam/Linux-PAM-$pkgver.tar.bz2
linux-pam-innetgr.patch
@@ -53,6 +54,7 @@ build() {
--infodir=/usr/share/info \
--localstatedir=/var \
--disable-nls \
+ --disable-db \
|| return 1
make || return 1
}
@@ -77,6 +79,9 @@ package() {
# delete pointless libtool archives.
find "$pkgdir" -name *.la -print | xargs rm
+
+ chgrp shadow "$pkgdir"/sbin/unix_chkpwd \
+ && chmod g+s "$pkgdir"/sbin/unix_chkpwd || return 1
}
md5sums="35b6091af95981b1b2cd60d813b5e4ee Linux-PAM-1.1.8.tar.bz2