commit:     22b5f7db236417979d854e9c3a55dc4ed78c6ac8
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Sep  5 21:21:09 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Sep  5 21:21:09 2025 +0000
URL:        https://gitweb.gentoo.org/proj/pambase.git/commit/?id=22b5f7db

Run pam_mktemp then pam_env

This allows pam_env to include a newly-created temporary directory.

Bug: https://bugs.gentoo.org/780441
Signed-off-by: Sam James <sam <AT> gentoo.org>

 templates/system-session.tpl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/templates/system-session.tpl b/templates/system-session.tpl
index 4a0f435..e5ab42b 100644
--- a/templates/system-session.tpl
+++ b/templates/system-session.tpl
@@ -1,8 +1,8 @@
 session                required        pam_limits.so {{ debug }}
-session                required        pam_env.so {{ debug }}
 {% if mktemp %}
 session                optional        pam_mktemp.so
 {% endif %}
+session                required        pam_env.so {{ debug }}
 
 {%if krb5 %}
 session                [success=1 default=ignore]      pam_krb5.so {{ debug }} 
ignore_root try_first_pass

Reply via email to