From 739c65c54cb0e957df5e9b76f93fb02554e5cac3 Mon Sep 17 00:00:00 2001 From: davidovski Date: Wed, 4 May 2022 23:52:30 +0100 Subject: moved everything to new file formatting --- repo/system/pam/other.pamd | 11 +++++++++ repo/system/pam/pam.xibuild | 46 ++++++++++++++++++++++++++++++++++++ repo/system/pam/system-account.pamd | 1 + repo/system/pam/system-auth.pamd | 2 ++ repo/system/pam/system-password.pamd | 3 +++ repo/system/pam/system-session.pamd | 3 +++ 6 files changed, 66 insertions(+) create mode 100644 repo/system/pam/other.pamd create mode 100644 repo/system/pam/pam.xibuild create mode 100644 repo/system/pam/system-account.pamd create mode 100644 repo/system/pam/system-auth.pamd create mode 100644 repo/system/pam/system-password.pamd create mode 100644 repo/system/pam/system-session.pamd (limited to 'repo/system/pam') diff --git a/repo/system/pam/other.pamd b/repo/system/pam/other.pamd new file mode 100644 index 0000000..20bdb74 --- /dev/null +++ b/repo/system/pam/other.pamd @@ -0,0 +1,11 @@ + +auth required pam_warn.so +auth required pam_deny.so +account required pam_warn.so +account required pam_deny.so +password required pam_warn.so +password required pam_deny.so +session required pam_warn.so +session required pam_deny.so + + diff --git a/repo/system/pam/pam.xibuild b/repo/system/pam/pam.xibuild new file mode 100644 index 0000000..366ec3c --- /dev/null +++ b/repo/system/pam/pam.xibuild @@ -0,0 +1,46 @@ +#!/bin/sh + +MAKEDEPS="make automake" +DEPS="musl libxcrypt" + +PKG_VER=1.5.2 +SOURCE=https://github.com/linux-pam/linux-pam/releases/download/v$PKG_VER/Linux-PAM-$PKG_VER.tar.xz +ADDITIONAL=" + system-auth.pamd + system-account.pamd + system-password.pamd + system-session.pamd + other.pamd +" +DESC="PAM (Pluggable Authentication Modules) library" + +prepare () { + # prevent install of an uneeded systemd file + sed -e /service_DATA/d \ + -i modules/pam_namespace/Makefile.am && + autoreconf + +} + +build () { + ./configure --prefix=/usr \ + --sbindir=/usr/sbin \ + --sysconfdir=/etc \ + --libdir=/usr/lib \ + --enable-securedir=/usr/lib/security \ + --docdir=/usr/share/doc/Linux-PAM-$PKG_VER && + make +} + +package () { + make DESTDIR=$PKG_DEST install + install -m755 -d $PKG_DEST/etc/pam.d + + cp system-account.pamd $PKG_DEST/etc/pam.d/system-account + cp system-auth.pamd $PKG_DEST/etc/pam.d/system-auth + cp system-password.pamd $PKG_DEST/etc/pam.d/system-password + cp system-session.pamd $PKG_DEST/etc/pam.d/system-session + cp other.pamd $PKG_DEST/etc/pam.d/other + [ -d $PKG_DEST/usr/lib/systemd ] && rm -r $PKG_DEST/usr/lib/systemd + return 0 +} diff --git a/repo/system/pam/system-account.pamd b/repo/system/pam/system-account.pamd new file mode 100644 index 0000000..b36f26d --- /dev/null +++ b/repo/system/pam/system-account.pamd @@ -0,0 +1 @@ +account required pam_unix.so diff --git a/repo/system/pam/system-auth.pamd b/repo/system/pam/system-auth.pamd new file mode 100644 index 0000000..5f85baf --- /dev/null +++ b/repo/system/pam/system-auth.pamd @@ -0,0 +1,2 @@ +auth required pam_unix.so + diff --git a/repo/system/pam/system-password.pamd b/repo/system/pam/system-password.pamd new file mode 100644 index 0000000..56d5122 --- /dev/null +++ b/repo/system/pam/system-password.pamd @@ -0,0 +1,3 @@ +# basic PAM configuration for Alpine. + +password required pam_unix.so nullok md5 sha512 shadow try_first_pass diff --git a/repo/system/pam/system-session.pamd b/repo/system/pam/system-session.pamd new file mode 100644 index 0000000..5e25d29 --- /dev/null +++ b/repo/system/pam/system-session.pamd @@ -0,0 +1,3 @@ + +session required pam_unix.so + -- cgit v1.2.1