Age | Commit message (Collapse) | Author | Files | Lines |
|
Returns the current list of inhibitors, an array of strings
representing the what, who, why, mode, and two unsigned int32
representing the user ID and process ID.
This is the same method that logind uses. Needed to have inhibit
track the uid/pid of the caller to mirror what logind returns.
|
|
|
|
This ensures the 90-consolekit file will be installed to the
right location.
|
|
Add the SystemdService service tag to the consolekit service file
if we're being built with systemd support.
|
|
This ensures the logrotate file will rotate the history file correctly.
It also now installs to the right location.
|
|
This patch:
- Adds the PowerOff/Reboot and respective Can APIs.
- Adds the PolkicyKit interactivity flag for the power and suspend
API calls. Same as logind.
- Adds a note of when the API calls were introduced to the docs.
The goal is just to make it easier for consumers of the APIs to
support both ConsoleKit2 and logind.
The Stop/Restart API calls from ConsoleKit1 are still present
and function almost exactly the same (only change is they respect
inhibitors now). This patch fixes:
https://github.com/ConsoleKit2/ConsoleKit2/issues/10
|
|
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.
|
|
This installs an Xsession.d script for ck-launch-session. By
default the script is installed to /etc/X11/xinit/xinitrc.d but
can be changed by a --with-xinitrc-dir configure switch.
|
|
|
|
We now install the logrotate file and default to /etc/logrotate.d
as the default to install to.
|
|
Add the logrotate and Xsession.d script for ck-launch-session to
the data folder so it's easier for distros to include it. These
files were pulled from the Debian ConsoleKit package:
http://ftp.de.debian.org/debian/pool/main/c/consolekit/consolekit_0.4.6-5.debian.tar.xz
|
|
|
|
The initial work in progress to add in suspend/hibernate and the
inhibit locks.
|
|
See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=678506 for
additional details.
|
|
In case of shutdown when sysinit.target is not up yet (i.e. emergency
mode or suchlike) ensure that we don't try to start sysinit.target
before shutting down.
|
|
https://bugs.freedesktop.org/show_bug.cgi?id=32130
|
|
|
|
|
|
|
|
|
|
|
|
to avoid that it can be triggered twice
|
|
This follows the basic scheme of the Upstart scripts we already ship
|
|
|
|
It confuses some versions of D-Bus and isn't needed
(or wanted it).
http://bugs.freedesktop.org/show_bug.cgi?id=25642
|
|
It was trying to write the log message way too early,
before the root filesystem was mounted.
|
|
This change is necessarily following commit:
e0d9cc359b3099307067107b59ec691418e280b8
|
|
|
|
The manager interface GetSessions function was
disallowed by the dbus security policy, despite only
exporting information that's available in other ways.
This commit opens it up.
See http://bugs.freedesktop.org/show_bug.cgi?id=20471
|
|
These can be used to add system start/stop/restart logging
but hooking into Upstart event mechanism.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Deny first and then allow. Add a simple test
script to check method access policy.
|
|
|
|
|
|
This patch makes polkit an optional dependency. If present
it builds with it. If not, polkit support is disabled.
This patch also adds a --enable-rbac-shutdown=<key> option.
If set, then ConsoleKit will allow shutdown/reboot if the
user has the RBAC key authorization defined. For example,
since the GDM GUI program runs as the "gdm" user, setting
the key for the "gdm" user allows the login program to
shutdown and reboot via ConsoleKit.
Also this patch modifies the tools/solaris/ck-system-restart
and tools/solaris/ck-system-stop scripts to call "/sbin/init 6"
and "/sbin/init 5", which are the right commands for Solaris.
|
|
|
|
Add Stop and Restart methods to the Manager object. We'll rename the
Manager object to System in the near future. Use libpolkit to
determine authorization.
|
|
given that my first patch get's applied, it makes sense to remove the
old sysv init script, as it's not really needed anymore. Besides, most
distros will not use this init script anyways as they have special
policies for their init script and provide their own.
|
|
the attached patch installs a D-Bus system service file. This way the
CK service can be started on demand. This obviously makes the sysv
init script obsolete.
Requirements are dbus >= 1.1.2
|
|
|
|
Move the initdir variable inside the if-block so that
it's not created on FreeBSD.
Signed-off-by: Florent Thoumie <flz@FreeBSD.org>
|
|
Don't install ConsoleKit script in init.d/rc.d/ as it is
unusable on FreeBSD.
Signed-off-by: Florent Thoumie <flz@FreeBSD.org>
|
|
|
|
|