aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpsykose <alice@ayaya.dev>2022-03-21 17:04:07 +0000
committerpsykose <alice@ayaya.dev>2022-04-15 22:35:43 +0200
commit3f28965a3ed74837435bd0d488463d10afe72f3f (patch)
treecafac78e9d2bcc66f3b4b6c79425d8d6dd58cd44
parentabc20d3f55e688b5b5a03a6e3c3c0f033a6cb28c (diff)
downloadaports-3f28965a3ed74837435bd0d488463d10afe72f3f.tar.gz
aports-3f28965a3ed74837435bd0d488463d10afe72f3f.tar.bz2
aports-3f28965a3ed74837435bd0d488463d10afe72f3f.tar.xz
main/util-linux: add pam configuration for login
`login` provided by util-linux, with pam support, depends on a /etc/pam.d/login configuration, and one is not provided by anything. this copies the same configuration as shadow-login has, which works
-rw-r--r--main/util-linux/APKBUILD7
-rw-r--r--main/util-linux/login.pamd6
2 files changed, 12 insertions, 1 deletions
diff --git a/main/util-linux/APKBUILD b/main/util-linux/APKBUILD
index 9226a6301d..f3be8bf4aa 100644
--- a/main/util-linux/APKBUILD
+++ b/main/util-linux/APKBUILD
@@ -3,7 +3,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=util-linux
pkgver=2.38
-pkgrel=0
+pkgrel=1
pkgdesc="Random collection of Linux utilities"
url="https://git.kernel.org/cgit/utils/util-linux/util-linux.git"
arch="all"
@@ -87,6 +87,7 @@ source="https://www.kernel.org/pub/linux/utils/util-linux/v$_v/util-linux-$pkgve
ttydefaults.h
rfkill.confd
rfkill.initd
+ login.pamd
"
# secfixes:
@@ -231,6 +232,9 @@ login() {
error "file $cmd not found"
return 1
done
+
+ # install pam configuration for 'login'
+ install -Dm644 "$srcdir"/login.pamd "$subpkgdir"/etc/pam.d/login
}
_login_doc() {
@@ -271,4 +275,5 @@ d0f7888f457592067938e216695871ce6475a45d83a092cc3fd72b8cf8fca145ca5f3a99122f1744
876bb9041eca1b2cca1e9aac898f282db576f7860aba690a95c0ac629d7c5b2cdeccba504dda87ff55c2a10b67165985ce16ca41a0694a267507e1e0cafd46d9 ttydefaults.h
401d2ccbdbfb0ebd573ac616c1077e2c2b79ff03e9221007759d8ac25eb522c401f705abbf7daac183d5e8017982b8ec5dd0a5ebad39507c5bb0a9f31f04ee97 rfkill.confd
c4e7ba6d257496c99934add2ca532db16fb070ea2367554587c9fb4e24ab1d80b8ba3fd0fd4fdd5ef1374c3ec6414007369b292ee334ef23171d0232ef709db2 rfkill.initd
+8d1c7043719af9ee1473fdb482e054ca0e0fa1ac673cb9c7db96a6aad00382456225dea05267dab96e19d5f444a00681e8dbaf7399100c75424fd388d48ad68b login.pamd
"
diff --git a/main/util-linux/login.pamd b/main/util-linux/login.pamd
new file mode 100644
index 0000000000..49081c882f
--- /dev/null
+++ b/main/util-linux/login.pamd
@@ -0,0 +1,6 @@
+#%PAM-1.0
+# /bin/login opens an interactive session.
+auth include base-auth
+account include base-account
+password include base-password
+session include base-session