Could you, experts, explain me (and maybe others) what the role of logind, consolekit and polkit is exactly?

    What I understand from your discussion is that consolekit and logind are doing the same thing and stepping on each others feet. Gentoo's consolekit wiki tells the following:

*ConsoleKit* is a framework for defining and tracking users, login sessions, and seats. ConsoleKit's primary function is to support multi-user setups. It also works for a single user, but offers no benefits compared to existing methods.

ConsoleKit is a D-Bus daemon and creates for each PAM session its own session. All applications in that session can make use of the permissions granted to this session. ConsoleKit determines if the session is local (created by a local user in contrast to users logged in over the network), and if the session is active (meaning it's the most recent session). Based on these distinctions, ConsoleKit assigns device file permissions (e.g. for audio, video and more) to the session. Other software like polkit  also make use of these distinctions


     According to this wiki, the role of consolekit (and/or logind) is to make a distinction between local and remote sessions, to grant more permissions to the first (which seems futile). But why do we need both logind/consolekit and polkit ?

    I understand udisks asks the permission (through PAM)to either logind or consolekit for mounting removable disks, which is a priviledged operation. I'm not sure how pmount does, but, on my Ascii install, udisks fails on mmcblk0p1 while pmount succeeds.

    Thanks.

                                        Didier



_______________________________________________
Dng mailing list
[email protected]
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng

Reply via email to