Created attachment 13690 [details] [review] implement /var/run/console/<username> tags There are currently some applications which use the dbus policy "at_console". In order to drop libpam-console, libpam-foreground & friends and only use ConsoleKit (which already has this information anyway), it would be nice if CK would write pam_console like tag files (/var/run/console/<username>). I attached the Ubuntu patch for doing this. Thank you for considering, Martin
Oh, I forgot to mention: It would be bad style if dbus itself would issue dbus calls to CK to check if a caller is at a local console.
I think the way we want to do this is to use scripts in run-session.d for this.
Oh, I was not aware that CK already provides a hooks.d directory (the Debian package doesn't ship one either). I'm not much fussed about my patch, you are welcome to throw it away, but we need it working one way or the other until all projects are converted to not use dbus at_console policy any more. Thank you!
Created attachment 14034 [details] [review] implement /var/run/console/<username> tags This updated patch creates the PAM console stamps for local CK sessions only.
Created attachment 17717 [details] run-session.d script I threw away the patch in Ubuntu now and replaced it with a run-session.d/ script. Thanks for the hint!
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.