evertiro / cdm

Console Display Manager
http://evertiro.com
GNU General Public License v2.0
428 stars 40 forks source link

Session logged in from cdm not active in utmp #4

Open andres-erbsen opened 12 years ago

andres-erbsen commented 12 years ago

CDM proccess pid is added to utmp (logged in users file), but after CDM starts the X session and exits, the user does not appear to be logged in anymore. The conventional solution to this seems to be starting user session on the same pid using exec, but this tends to leave the initial tty vulnerable to tampering after using CTRL + C (even if the X session may be locked).

This makes "w", "who" and "users" commands not report the user and "last" shows the duration of cdm menu being displayed as session duration.