From 749b7331a71b6bef86025372ad413e2ddc3aa9ee Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Thu, 18 Apr 2024 14:49:42 +0200 Subject: [PATCH] remove required pam_limits from pam files for docker containers, use definitions in system-auth:session [release 2.40-3mamba;Wed Apr 17 2024] --- util-linux-pam-chfn | 2 -- util-linux-pam-chsh | 2 -- util-linux-pam-login | 2 -- util-linux-pam-remote | 2 -- util-linux-pam-runuser | 2 -- util-linux-pam-runuser-l | 2 -- util-linux-pam-su | 4 +--- util-linux-pam-su-l | 4 +--- util-linux.spec | 5 ++++- 9 files changed, 6 insertions(+), 19 deletions(-) diff --git a/util-linux-pam-chfn b/util-linux-pam-chfn index 2a5c808..9075169 100644 --- a/util-linux-pam-chfn +++ b/util-linux-pam-chfn @@ -4,5 +4,3 @@ auth include system-auth account include system-auth password include system-auth session include system-auth -session required pam_limits.so -#session optional pam_console.so diff --git a/util-linux-pam-chsh b/util-linux-pam-chsh index 2a5c808..9075169 100644 --- a/util-linux-pam-chsh +++ b/util-linux-pam-chsh @@ -4,5 +4,3 @@ auth include system-auth account include system-auth password include system-auth session include system-auth -session required pam_limits.so -#session optional pam_console.so diff --git a/util-linux-pam-login b/util-linux-pam-login index 2a5c808..9075169 100644 --- a/util-linux-pam-login +++ b/util-linux-pam-login @@ -4,5 +4,3 @@ auth include system-auth account include system-auth password include system-auth session include system-auth -session required pam_limits.so -#session optional pam_console.so diff --git a/util-linux-pam-remote b/util-linux-pam-remote index 2a5c808..9075169 100644 --- a/util-linux-pam-remote +++ b/util-linux-pam-remote @@ -4,5 +4,3 @@ auth include system-auth account include system-auth password include system-auth session include system-auth -session required pam_limits.so -#session optional pam_console.so diff --git a/util-linux-pam-runuser b/util-linux-pam-runuser index 2a5c808..9075169 100644 --- a/util-linux-pam-runuser +++ b/util-linux-pam-runuser @@ -4,5 +4,3 @@ auth include system-auth account include system-auth password include system-auth session include system-auth -session required pam_limits.so -#session optional pam_console.so diff --git a/util-linux-pam-runuser-l b/util-linux-pam-runuser-l index 2a5c808..9075169 100644 --- a/util-linux-pam-runuser-l +++ b/util-linux-pam-runuser-l @@ -4,5 +4,3 @@ auth include system-auth account include system-auth password include system-auth session include system-auth -session required pam_limits.so -#session optional pam_console.so diff --git a/util-linux-pam-su b/util-linux-pam-su index a107012..f9630b6 100644 --- a/util-linux-pam-su +++ b/util-linux-pam-su @@ -1,9 +1,7 @@ #%PAM-1.0 -auth sufficient pam_rootok.so +auth sufficient pam_rootok.so auth include system-auth auth required pam_nologin.so account include system-auth password include system-auth session include system-auth -session required pam_limits.so -#session optional pam_console.so diff --git a/util-linux-pam-su-l b/util-linux-pam-su-l index a107012..f9630b6 100644 --- a/util-linux-pam-su-l +++ b/util-linux-pam-su-l @@ -1,9 +1,7 @@ #%PAM-1.0 -auth sufficient pam_rootok.so +auth sufficient pam_rootok.so auth include system-auth auth required pam_nologin.so account include system-auth password include system-auth session include system-auth -session required pam_limits.so -#session optional pam_console.so diff --git a/util-linux.spec b/util-linux.spec index 835803c..dfe7ee0 100644 --- a/util-linux.spec +++ b/util-linux.spec @@ -5,7 +5,7 @@ Name: util-linux Version: 2.40 -Release: 2mamba +Release: 3mamba Epoch: 1 Summary: Miscellaneous utilities for Linux Group: System/Tools @@ -429,6 +429,9 @@ exit 0 %{_libdir}/pkgconfig/lastlog2.pc %changelog +* Wed Apr 17 2024 Silvan Calarco 2.40-3mamba +- remove required pam_limits from pam files for docker containers, use definitions in system-auth:session + * Wed Apr 03 2024 Silvan Calarco 2.40-2mamba - fix requirement for liblastlog2