On 17.12.2014 16:18, Kaskinen, Tanu wrote:
If you set PAM_TTY to "tty2", does "loginctl
show-session" say "Active=yes" or "Active=no"?

Yes, that's the case, but WHY!?

PAM_TTY variable is supposed to mean exactly... My assumptions: the VT
number corresponds to the function key number when I switch terminals
with Ctrl-Alt-F<N>. The tty number is related to the VT number, but they
are not exactly the same thing. Maybe ttys are only assigned to text

Yes, that's the case, we open and initialize the given /dev/ttyX, when asked in the tlm.conf

the fact that pam_sm_open_session() in src/login/pam_systemd.c sets the
tty variable to NULL in case of X11, cron and ssh logins before passing
it to logind. If the tty number is relevant only in the context of text
logins, and you're dealing with graphical logins, maybe the right thing
would be to unset PAM_TTY or set it to an empty string?

Initially we used tty7 for the genivi user (needed to get the weston DRM backend up) and no TTY at all for the user compositor (wayland backend) because TTY is not needed at all for this case. Which means that PAM_TTY wasn't set at all. However this was the initial problem that then things don't work. So things ONLY work when PAM_TTY=tty1 and doesn't if it's anything else or not set.

pam_systemd is not called for the genivi user and thus logind doesn't know about it's session at all. Thus none of the user services are launched for it, as intended.

_______________________________________________
Dev mailing list
[email protected]
https://lists.tizen.org/listinfo/dev

Reply via email to