From 89d982ec3c7964ac364893709b79b9378506365d Mon Sep 17 00:00:00 2001 From: Anke Date: Wed, 21 Nov 2012 00:22:43 +0000 Subject: [PATCH] trial to add new files called in util-linux --- util-linux/PKGBUILD | 21 ++++++++++++++++++--- util-linux/system-auth | 17 +++++++++++++++++ util-linux/system-local-login | 6 ++++++ util-linux/system-login | 20 ++++++++++++++++++++ util-linux/system-remote-login | 6 ++++++ util-linux/system-services | 11 +++++++++++ 6 files changed, 78 insertions(+), 3 deletions(-) create mode 100644 util-linux/system-auth create mode 100644 util-linux/system-local-login create mode 100644 util-linux/system-login create mode 100644 util-linux/system-remote-login create mode 100644 util-linux/system-services diff --git a/util-linux/PKGBUILD b/util-linux/PKGBUILD index e978006f7..ef4d587bb 100644 --- a/util-linux/PKGBUILD +++ b/util-linux/PKGBUILD @@ -6,7 +6,7 @@ pkgname=util-linux pkgver=2.22.1 -pkgrel=2 +pkgrel=3 pkgdesc="Miscellaneous system utilities for Linux" url="http://www.kernel.org/pub/linux/utils/util-linux/" arch=('x86_64') @@ -21,7 +21,12 @@ source=(ftp://ftp.kernel.org/pub/linux/utils/${pkgname}/v2.22/${pkgname}-${pkgve uuidd.tmpfiles pam-login pam-common - pam-su) + pam-su + system-auth + system-local-login + system-login + system-remote-login + system-services) backup=(etc/pam.d/chfn etc/pam.d/chsh etc/pam.d/login @@ -32,7 +37,12 @@ md5sums=('730cf9932531ed09b53a04ca30fcb4c9' 'a39554bfd65cccfd8254bb46922f4a67' '4368b3f98abd8a32662e094c54e7f9b1' 'a31374fef2cba0ca34dfc7078e2969e4' - 'fa85e5cce5d723275b14365ba71a8aad') + 'fa85e5cce5d723275b14365ba71a8aad' + '5f169a4ffe7ed69f58e106cdd2d760df' + '477237985820117a0e6e1b13a86eb599' + '17c691f2da319df8fe851bc47cc1d662' + '477237985820117a0e6e1b13a86eb599' + '30fe7d41e054ee43fab7855bf88a07e5') build() { cd "${srcdir}/${pkgname}-${pkgver}" @@ -71,6 +81,11 @@ package() { install -m644 "$srcdir/pam-login" "$pkgdir/etc/pam.d/login" install -m644 "$srcdir/pam-su" "${pkgdir}/etc/pam.d/su" install -m644 "$srcdir/pam-su" "${pkgdir}/etc/pam.d/su-l" + install -m644 "$srcdir/system-auth" "${pkgdir}/etc/pam.d/system-auth" + install -m644 "$srcdir/system-local-login" "${pkgdir}/etc/pam.d/system-local-login" + install -m644 "$srcdir/system-login" "${pkgdir}/etc/pam.d/system-login" + install -m644 "$srcdir/system-remote-login" "${pkgdir}/etc/pam.d/system-remote-login" + install -m644 "$srcdir/system-services" "${pkgdir}/etc/pam.d/system-services" install -Dm644 "$srcdir/uuidd.tmpfiles" "$pkgdir/usr/lib/tmpfiles.d/uuidd.conf" } diff --git a/util-linux/system-auth b/util-linux/system-auth new file mode 100644 index 000000000..b28a7e961 --- /dev/null +++ b/util-linux/system-auth @@ -0,0 +1,17 @@ +#%PAM-1.0 + +auth required pam_env.so +auth required pam_unix.so try_first_pass nullok +auth optional pam_permit.so + +account required pam_unix.so +account optional pam_permit.so +account required pam_time.so + +password required pam_unix.so try_first_pass nullok sha512 shadow +password optional pam_permit.so + +session required pam_limits.so +session required pam_env.so +session required pam_unix.so +session optional pam_permit.so diff --git a/util-linux/system-local-login b/util-linux/system-local-login new file mode 100644 index 000000000..347b8155b --- /dev/null +++ b/util-linux/system-local-login @@ -0,0 +1,6 @@ +#%PAM-1.0 + +auth include system-login +account include system-login +password include system-login +session include system-login diff --git a/util-linux/system-login b/util-linux/system-login new file mode 100644 index 000000000..c3bfd7c79 --- /dev/null +++ b/util-linux/system-login @@ -0,0 +1,20 @@ +#%PAM-1.0 + +auth required pam_tally.so onerr=succeed file=/var/log/faillog +auth required pam_shells.so +auth requisite pam_nologin.so +auth include system-auth + +account required pam_access.so +account required pam_nologin.so +account include system-auth + +password include system-auth + +session optional pam_loginuid.so +session required pam_env.so +session include system-auth +session optional pam_motd.so motd=/etc/motd +session optional pam_mail.so dir=/var/spool/mail standard +-session optional pam_ck_connector.so nox11 +-session optional pam_systemd.so diff --git a/util-linux/system-remote-login b/util-linux/system-remote-login new file mode 100644 index 000000000..347b8155b --- /dev/null +++ b/util-linux/system-remote-login @@ -0,0 +1,6 @@ +#%PAM-1.0 + +auth include system-login +account include system-login +password include system-login +session include system-login diff --git a/util-linux/system-services b/util-linux/system-services new file mode 100644 index 000000000..311c0d6d0 --- /dev/null +++ b/util-linux/system-services @@ -0,0 +1,11 @@ +#%PAM-1.0 + +auth sufficient pam_permit.so + +account include system-auth + +session optional pam_loginuid.so +session required pam_limits.so +session required pam_env.so +session required pam_unix.so +session optional pam_permit.so