From 563b5dedb77affe619290d5eab34fe6b39d52915 Mon Sep 17 00:00:00 2001 From: Alessandro Astone Date: Wed, 26 Nov 2025 18:20:30 +0100 Subject: [PATCH] man: Update docs for ExtraDeviceAccess --- man/org.freedesktop.login1.xml | 9 +++++++++ man/pam_systemd.xml | 11 +++++++++++ man/sd_session_is_active.xml | 20 +++++++++++++++++--- 3 files changed, 37 insertions(+), 3 deletions(-) diff --git a/man/org.freedesktop.login1.xml b/man/org.freedesktop.login1.xml index b447ae70f64..cc4a146fff5 100644 --- a/man/org.freedesktop.login1.xml +++ b/man/org.freedesktop.login1.xml @@ -1246,6 +1246,8 @@ node /org/freedesktop/login1/session/1 { @org.freedesktop.DBus.Property.EmitsChangedSignal("const") readonly s RemoteUser = '...'; @org.freedesktop.DBus.Property.EmitsChangedSignal("const") + readonly b ExtraDeviceAccess = ...; + @org.freedesktop.DBus.Property.EmitsChangedSignal("const") readonly s Service = '...'; @org.freedesktop.DBus.Property.EmitsChangedSignal("const") readonly s Desktop = '...'; @@ -1348,6 +1350,8 @@ node /org/freedesktop/login1/session/1 { + + @@ -1537,6 +1541,10 @@ node /org/freedesktop/login1/session/1 { RemoteHost and RemoteUser encode the remote host and user if this is a remote session, or an empty string otherwise. + ExtraDeviceAccess encodes whether the session is granted access to additional + hardware devices, typically useful for for graphical, remote session. If true, the session is granted + access to all devices tagged with xaccess in udev. + Service encodes the PAM service name that registered the session. Desktop describes the desktop environment running in the session (if @@ -1671,6 +1679,7 @@ node /org/freedesktop/login1/session/1 { SetTTY() was added in version 254. SetClass() was added in version 256. LeaderPIDFDId was added in version 258. + ExtraDeviceAccess was added in version 260. diff --git a/man/pam_systemd.xml b/man/pam_systemd.xml index 5b6f2fa732f..ee3060d670e 100644 --- a/man/pam_systemd.xml +++ b/man/pam_systemd.xml @@ -404,6 +404,17 @@ + + + $XDG_SESSION_EXTRA_DEVICE_ACCESS + + Whether or not the session shall be granted additional hardware device access, + typically useful for graphical, remote session. If true, the session is granted access to all + devices tagged with xaccess in udev. Typically, rendering device nodes of + the GPU are tagged like this. + + + If not set, pam_systemd will initialize diff --git a/man/sd_session_is_active.xml b/man/sd_session_is_active.xml index 92cd669dc48..3a3935cfef8 100644 --- a/man/sd_session_is_active.xml +++ b/man/sd_session_is_active.xml @@ -34,6 +34,7 @@ sd_session_get_remote_host sd_session_get_remote_user sd_session_get_leader + sd_session_has_extra_device_access Determine state of a specific session @@ -140,6 +141,11 @@ const char *session unsigned int *vt + + + int sd_session_has_extra_device_access + const char *session + @@ -274,6 +280,12 @@ session identifier. This function will return an error if the seat does not support VTs. + sd_session_has_extra_device_access() may + be used to determine whether the session is granted access to + additional hardware devices, typically useful for for graphical, + remote session. If true, the session is granted access to all + devices tagged with xaccess in udev. + If the session parameter of any of these functions is passed as NULL, the operation is executed for the session the calling process is a member of, if @@ -284,9 +296,10 @@ Return Value If the test succeeds, - sd_session_is_active() and - sd_session_is_remote() return a - positive integer; if it fails, 0. On success, + sd_session_is_active(), + sd_session_is_remote(), and + sd_session_has_extra_device_access() + return a positive integer; if it fails, 0. On success, sd_session_get_state(), sd_session_get_uid(), sd_session_get_username(), @@ -353,6 +366,7 @@ sd_session_get_username(), sd_session_get_start_time(), and sd_session_get_leader() were added in version 254. + sd_session_has_extra_device_access() was added in version 260. -- 2.47.3