ports/core (3.5): sudo: converted to use PAM
commit 53d2ed7290db63d3e1f4f69c0bdd6dd424c2aa40 Author: Matt Housh <jaeger@crux.ninja> Date: Sun Feb 3 00:43:04 2019 -0600 sudo: converted to use PAM diff --git a/sudo/.footprint b/sudo/.footprint index 95663687..8dbdeef3 100644 --- a/sudo/.footprint +++ b/sudo/.footprint @@ -1,4 +1,6 @@ drwxr-xr-x root/root etc/ +drwxr-xr-x root/root etc/pam.d/ +-rw-r--r-- root/root etc/pam.d/sudo -r--r----- root/root etc/sudoers drwxr-x--- root/root etc/sudoers.d/ -r--r----- root/root etc/sudoers.dist diff --git a/sudo/.signature b/sudo/.signature index b1352a60..da7fa9ee 100644 --- a/sudo/.signature +++ b/sudo/.signature @@ -1,5 +1,6 @@ untrusted comment: verify with /etc/ports/core.pub -RWRJc1FUaeVeqhN0XVne6DMHScg1csCJgnY7kRYVL+QyRAlRng6A6aYd9QdwqIz6VNMYZvagzQ9NL4r0KqYifWeDcZ3f09UoSgE= -SHA256 (Pkgfile) = a9f31c7c73529f9b6cf4e692db679c484ebf061db8976687c7f2a4f4ef07b493 -SHA256 (.footprint) = d7fecfbf06f8d91c409a6d87301fb2c91ef0f8278f30a8fe9a28b0172088ac74 +RWRJc1FUaeVeqgwZ3nf94xAefnBAKcp/qnU7D5XMQ+334FJ14w0RCTM0DYIIlHLSi4Vi+g3Oyuvfv8YX4jAdj3u5oogm9+LvAAQ= +SHA256 (Pkgfile) = b352194cd1c864f837dcd1f1b9f519ed96fe27fc4a37408b06f30072d661789d +SHA256 (.footprint) = f33ee1b4a6f217a5b392e6c63e74e1d9db02b1715b79284b80a9938f6e87914d SHA256 (sudo-1.8.27.tar.gz) = 7beb68b94471ef56d8a1036dbcdc09a7b58a949a68ffce48b83f837dd33e2ec0 +SHA256 (sudo.pam) = d56499ea47e4c654032b278923ebee0caba4ca5b0fd242ea9c47204afc8a09e1 diff --git a/sudo/Pkgfile b/sudo/Pkgfile index 8f71f9d5..434dfd25 100644 --- a/sudo/Pkgfile +++ b/sudo/Pkgfile @@ -1,12 +1,13 @@ # Description: Sudo (superuser do) # URL: http://www.sudo.ws/sudo/ # Maintainer: CRUX System Team, core-ports at crux dot nu -# Depends on: zlib +# Depends on: zlib linux-pam name=sudo version=1.8.27 -release=1 -source=(https://www.sudo.ws/$name/dist/$name-$version.tar.gz) +release=2 +source=(https://www.sudo.ws/dist/$name-$version.tar.gz \ + $name.pam) build() { cd $name-$version @@ -16,11 +17,14 @@ build() { --with-logfac=auth \ --with-vardir=/var/lib/sudo \ --with-rundir=/var/run/sudo \ - --without-pam \ --disable-nls make make DESTDIR=$PKG install + # PAM service file + install -D -m 0644 $SRC/$name.pam \ + $PKG/etc/pam.d/$name + rm -r $PKG/usr/share/doc } diff --git a/sudo/sudo.pam b/sudo/sudo.pam new file mode 100644 index 00000000..cfeb1b09 --- /dev/null +++ b/sudo/sudo.pam @@ -0,0 +1,11 @@ +# +# /etc/pam.d/sudo - sudo service module configuration +# + +auth include common-auth + +account include common-account + +password include common-password + +session include common-session
participants (1)
-
crux@crux.nu