summaryrefslogtreecommitdiff
path: root/src/ck-sysdeps-linux.c
AgeCommit message (Collapse)AuthorFilesLines
2014-10-20Add HybridSleep support and change CanSleepEric Koegel1-0/+6
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.
2014-10-19Merge branch 'dbus-api-additions'Eric Koegel1-0/+37
Implement the Suspend/Hibernate DBUS APIs for: https://github.com/ConsoleKit2/ConsoleKit2/issues/3 Conflicts: configure.ac
2014-10-13Fix gcc warningEric Koegel1-12/+12
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.
2014-10-13More Suspend DBUS API workEric Koegel1-0/+37
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.
2014-10-06Linux: Use /sys/class/tty/tty0/active for VT change notificationsEric Koegel1-0/+134
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
2014-10-01Add support for devices with long namesAleix Conchillo FlaquƩ1-1/+1
See http://launchpad.net/bugs/1130923
2010-05-20Enhancement CanActivateSessions for OpenSolaris.Halton Huo1-0/+6
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
2008-04-03initial login session id supportWilliam Jon McCann1-0/+66
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
2007-08-27move some of the freebsd specific stuff into sysdepsWilliam Jon McCann1-0/+49
2007-08-22more build fixes for solarisBrian Cameron1-1/+4
2007-08-21abstract out the tty device basename stuffWilliam Jon McCann1-0/+35
2007-08-21more solaris supportWilliam Jon McCann1-0/+14
based on patch from Brian Cameron.
2007-08-16move all proc stuff into ck-sysdepsWilliam Jon McCann1-0/+605