Page MenuHomeFreeBSD

pam: Always use pam_xdg for session and xdm
ClosedPublic

Authored by manu on Feb 21 2024, 2:58 PM.
Tags
None
Referenced Files
F108426485: D44012.diff
Fri, Jan 24, 4:59 PM
Unknown Object (File)
Tue, Jan 21, 2:11 AM
Unknown Object (File)
Mon, Jan 20, 6:13 PM
Unknown Object (File)
Fri, Jan 10, 4:16 AM
Unknown Object (File)
Fri, Jan 10, 4:12 AM
Unknown Object (File)
Thu, Jan 9, 3:17 PM
Unknown Object (File)
Wed, Jan 8, 1:24 AM
Unknown Object (File)
Dec 10 2024, 1:59 PM

Details

Summary

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.

Sponsored by: Beckhoff Automation GmbH & Co. KG

Test Plan

Tested with x11/ly (wayland and x11), x11/sddm (wayland and x11), x11/xdm and login on the console.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 56151
Build 53039: arc lint + arc unit

Event Timeline

manu requested review of this revision.Feb 21 2024, 2:58 PM
manu retitled this revision from pam: Always use pam_xdg for session to pam: Always use pam_xdg for session and xdm.Feb 22 2024, 6:07 AM
This revision is now accepted and ready to land.Feb 22 2024, 6:15 PM
This revision was automatically updated to reflect the committed changes.

Was that change adequately tested?

It did it break LightDM with a ghome-keyring.

See https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=279669.

That also breaks the GhostBSD gnome-keyring setup.

Unfortunately if pam_xdg.so isn't built, perhaps src.conf has WITHOUT_X11, then console login is blocked.