Age | Commit message (Collapse) | Author | Files | Lines |
|
Emulate the logind API to make it more easier for porting to
ConsoleKit2 for the CanSuspend/CanHibernate/CanHybridSleep methods.
They now return:
yes - system can and user explicitly authorized by polkit, rbac, or neither is running
no - system can and user explicitly unauthorized by polkit or rbac
challenge - system can and user requires elevation via polkit
na - system does not support it (hardware or backend support missing).
The auth methods have been removed.
Currently HybridSleep only works on Linux.
|
|
Implement the Suspend/Hibernate DBUS APIs for:
https://github.com/ConsoleKit2/ConsoleKit2/issues/3
Conflicts:
configure.ac
|
|
warning: use of assignment suppression and length modifier
together in gnu_scanf format. Additionally added comments
next to each of the sscanf variables because there's a lot
of them to keep track of.
|
|
We need a Can/Auth split for suspend/hibernate because the user
may be authorized but the system is unable to perform those
actions. Additionally start working the inhibit calls. We also
need to actually add the suspend/hibernate tools.
|
|
This prevents Linux from spawning 63 threads. Now there's one
monitor thread that watches for the active VT to change.
Based on the VT_WAITEVENT patch by Kan-Ru Chen.
Fixes:
https://github.com/ConsoleKit2/ConsoleKit2/issues/1
https://bugs.freedesktop.org/show_bug.cgi?id=17720
https://bugs.launchpad.net/ubuntu/+source/consolekit/+bug/148454
|
|
See http://launchpad.net/bugs/1130923
|
|
VT switching is always enabled on Linux, but for OpenSolaris VT switching
can be truned of by 'svcadm disable vtdaemon'. So we should also check
whether the service vtdaemon is online on OpenSolaris.
https://bugs.freedesktop.org/show_bug.cgi?id=26055
|
|
Linux audit session id support. Still TODO:
* determine if session id should be hidden
* export to bus
* add to event log
* figure out how to add it to non-generated sessions
|
|
|
|
|
|
|
|
based on patch from Brian Cameron.
|
|
|