Re: [systemd-devel] Systemd sessionid like `c508`

2023-01-10 Thread hai wu
Thank you Mantas! On Tue, Jan 10, 2023 at 10:58 PM Mantas Mikulėnas wrote: > > The sessions listed in loginctl are created and their IDs assigned by > systemd-logind (when asked by pam_systemd). > > If /proc/*/loginuid and /proc/*/sessionid are available (set up by > pam_loginuid), then logind

Re: [systemd-devel] Systemd sessionid like `c508`

2023-01-10 Thread Mantas Mikulėnas
The sessions listed in loginctl are created and their IDs assigned by systemd-logind (when asked by pam_systemd). If /proc/*/loginuid and /proc/*/sessionid are available (set up by pam_loginuid), then logind directly takes the audit session ID as logind session ID. If those are not available