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

Lucas Holt noreply at github.com
Sun Jul 12 23:40:28 EDT 2026


  Branch: refs/heads/master
  Home:   https://github.com/MidnightBSD/src
  Commit: e6e73477452e0e1765fa54dde1cf0518d765d082
      https://github.com/MidnightBSD/src/commit/e6e73477452e0e1765fa54dde1cf0518d765d082
  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: 1e98aa0e796936d271a14dbbb003a866e7137b29
      https://github.com/MidnightBSD/src/commit/1e98aa0e796936d271a14dbbb003a866e7137b29
  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/76dca86d3ae5...1e98aa0e7969

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