Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 780441

Summary: sys-auth/pambase: pam_mktemp.so is loaded after pam_env.so
Product: Gentoo Linux Reporter: Carlo <p3r7xsl4>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: UNCONFIRMED ---    
Severity: minor CC: gentoo, ionen, sam, zlogene
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=504492
Whiteboard:
Package list:
Runtime testing required: ---

Description Carlo 2021-04-05 21:58:08 UTC
Currently pam_mktemp.so is loaded after pam_env.so (in /etc/pam.d/system-auth, /etc/pam.d/system-services), so the ${TMP} variable is not available for pam_env.so. It appears to me that pam_mktemp.so does not depend on pam_env.so to be loaded first, so swapping it would probably do no harm. This is not a problem with login sessions, but if one wants to define ${TMP} in /etc/security/pam_env.conf for use in fcron.

This is related to https://bugs.gentoo.org/show_bug.cgi?id=504492