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
Unknown Object (File)
Thu, Mar 5, 7:16 PM
Unknown Object (File)
Wed, Mar 4, 7:05 AM
Unknown Object (File)
Tue, Feb 24, 8:36 PM
Unknown Object (File)
Tue, Feb 24, 6:25 PM
Unknown Object (File)
Mon, Feb 23, 7:38 PM
Unknown Object (File)
Mon, Feb 23, 4:50 PM
Unknown Object (File)
Mon, Feb 23, 3:58 AM
Unknown Object (File)
Sun, Feb 22, 3:28 AM

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 56167
Build 53055: 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.