summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-10-21 17:56:31 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-10-21 17:56:31 +0100
commitc45a7830db68e3deec5bf43e78c048f06c43bf7b (patch)
tree7cd68526830855aac1f6e00500954c97b70cedfd
parentb362ab341627b76f69433782271bc2d2882cf9d9 (diff)
sys-apps/openrc : fix pam authentification, I hope
-rw-r--r--packages/sys-apps/openrc/files/system-services.pam7
-rw-r--r--packages/sys-apps/openrc/openrc-0.34.11-r4.exheres-0 (renamed from packages/sys-apps/openrc/openrc-0.34.11-r3.exheres-0)9
2 files changed, 13 insertions, 3 deletions
diff --git a/packages/sys-apps/openrc/files/system-services.pam b/packages/sys-apps/openrc/files/system-services.pam
new file mode 100644
index 0000000..a964f33
--- /dev/null
+++ b/packages/sys-apps/openrc/files/system-services.pam
@@ -0,0 +1,7 @@
+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
diff --git a/packages/sys-apps/openrc/openrc-0.34.11-r3.exheres-0 b/packages/sys-apps/openrc/openrc-0.34.11-r4.exheres-0
index 54b04d0..50af632 100644
--- a/packages/sys-apps/openrc/openrc-0.34.11-r3.exheres-0
+++ b/packages/sys-apps/openrc/openrc-0.34.11-r4.exheres-0
@@ -142,9 +142,12 @@ src_install() {
insinto /etc/logrotate.d
newins "${FILES}"/openrc.logrotate openrc
- insinto /etc/pam.d
- newins "${FILES}"/start-stop-daemon.pam start-stop-daemon
- newins "${FILES}"/start-stop-daemon.pam supervise-daemon
+ if option pam; then
+ insinto /etc/pam.d
+ newins "${FILES}"/system-services.pam system-services
+ newins "${FILES}"/start-stop-daemon.pam start-stop-daemon
+ newins "${FILES}"/start-stop-daemon.pam supervise-daemon
+ fi
dodoc ChangeLog *.md
if option newnet; then