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
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