[Midnightbsd-cvs] [MidnightBSD/src] f1b350: pam_xdg: import XDG_RUNTIME_DIR session module fro...

Lucas Holt noreply at github.com
Sun Jul 12 23:47:33 EDT 2026


  Branch: refs/heads/stable/4.1
  Home:   https://github.com/MidnightBSD/src
  Commit: f1b350ef2d72ef73c2e72544c0e9ccd29ce2bb18
      https://github.com/MidnightBSD/src/commit/f1b350ef2d72ef73c2e72544c0e9ccd29ce2bb18
  Author: Lucas Holt <luke at foolishgames.com>
  Date:   2026-07-12 (Sun, 12 Jul 2026)

  Changed paths:
    M lib/libpam/modules/modules.inc
    A lib/libpam/modules/pam_xdg/Makefile
    A lib/libpam/modules/pam_xdg/pam_xdg.8
    A lib/libpam/modules/pam_xdg/pam_xdg.c
    M lib/libpam/pam.d/xdm

  Log Message:
  -----------
  pam_xdg: import XDG_RUNTIME_DIR session module from FreeBSD

Add pam_xdg(8), which creates the per-user XDG runtime directory under
/var/run/xdg/$USER (mode 0700, owned by the user) on session open and
exports XDG_RUNTIME_DIR.  The base prefix /var/run/xdg is created on
demand at mode 0711, so no etc/mtree entry is needed.  Concurrent
sessions are reference counted via xdg_session.N marker files; the
runtime directory is removed only when the last session closes.

The module is wired into the xdm PAM policy as a required session
module, matching FreeBSD.  Desktops that currently obtain
XDG_RUNTIME_DIR from ConsoleKit2 use a different path
(/var/run/user/$UID); pam_xdg now provides it from the base system.

Obtained from:	FreeBSD

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply at anthropic.com>


  Commit: 458d101cf4179dfd40e628b044094a9594d82ebc
      https://github.com/MidnightBSD/src/commit/458d101cf4179dfd40e628b044094a9594d82ebc
  Author: Lucas Holt <luke at foolishgames.com>
  Date:   2026-07-12 (Sun, 12 Jul 2026)

  Changed paths:
    M UPDATING

  Log Message:
  -----------
  UPDATING: note pam_xdg(8) import and xdm PAM policy change

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply at anthropic.com>


Compare: https://github.com/MidnightBSD/src/compare/68fe04e4fa67...458d101cf417

To unsubscribe from these emails, change your notification settings at https://github.com/MidnightBSD/src/settings/notifications


More information about the Midnightbsd-cvs mailing list