Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Feb 2024 17:35:59 GMT
From:      Emmanuel Vadot <manu@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 6b9e6f12e5bb - main - pam: Always use pam_xdg for session and xdm
Message-ID:  <202402261735.41QHZxjB028009@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by manu:

URL: https://cgit.FreeBSD.org/src/commit/?id=6b9e6f12e5bbfe347dba8ff8e1e161f9180a1edd

commit 6b9e6f12e5bbfe347dba8ff8e1e161f9180a1edd
Author:     Emmanuel Vadot <manu@FreeBSD.org>
AuthorDate: 2024-02-22 05:46:08 +0000
Commit:     Emmanuel Vadot <manu@FreeBSD.org>
CommitDate: 2024-02-26 17:35:22 +0000

    pam: Always use pam_xdg for session and xdm
    
    This ensure that the XDG_RUNTIME_DIR is always created and the environment
    variable is present which is a must for any wayland user (at least).
    The only "cost" of it is a directory is created and unused.
    
    Reviewed by:    des
    Differential Revision:  https://reviews.freebsd.org/D44012
    Sponsored by:   Beckhoff Automation GmbH & Co. KG
---
 lib/libpam/pam.d/system | 1 +
 lib/libpam/pam.d/xdm    | 1 +
 2 files changed, 2 insertions(+)

diff --git a/lib/libpam/pam.d/system b/lib/libpam/pam.d/system
index 5ba5567ea9c8..0b5ae5c8fff8 100644
--- a/lib/libpam/pam.d/system
+++ b/lib/libpam/pam.d/system
@@ -16,6 +16,7 @@ account		required	pam_unix.so
 # session
 #session	optional	pam_ssh.so		want_agent
 session		required	pam_lastlog.so		no_fail
+session         required        pam_xdg.so
 
 # password
 #password	sufficient	pam_krb5.so		no_warn try_first_pass
diff --git a/lib/libpam/pam.d/xdm b/lib/libpam/pam.d/xdm
index da4ac9f65c28..7f603ab640fd 100644
--- a/lib/libpam/pam.d/xdm
+++ b/lib/libpam/pam.d/xdm
@@ -16,6 +16,7 @@ account		required	pam_unix.so
 # session
 #session	required	pam_ssh.so		want_agent
 session		required	pam_lastlog.so		no_fail
+session         required        pam_xdg.so
 
 # password
 password	required	pam_deny.so



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202402261735.41QHZxjB028009>