Displaying 2 results from an estimated 2 matches for "streq_ptr".
Did you mean:
store_ptr
2024 Dec 16
1
PAM session setup and environment variables
...variables set by the client would be exposed in the child
> process that opens the PAM session?
pam_systemd enforces class 'user' for anything coming from SSH in
pam_sm_open_session. Here is a relevant fragment:
-------------------------------------------------------
} else if (streq_ptr(tty, "cron")) {
/* cron is setting PAM_TTY to "cron" for some reason (the commit carries no information why, but
* probably because it wants to set it to something as pam_time/pam_access/? require PAM_TTY to be set
* (as they oth...
2024 Dec 16
2
PAM session setup and environment variables
Hello everyone,
I am trying to adjust the systemd-logind classification of the SSH
session opened by Ansible client. By default the SSH session created
by Ansible client is Class=user and Type=tty in systemd-logind.
pam_systemd.so allows users to change this default via the environment
variables XDG_SESSION_CLASS and XDG_SESSION_TYPE. When I set these
variables on the client and make sure they