Age | Commit message (Collapse) | Author | Files | Lines |
|
When DISPLAY is set to a remote display, the remote display server
is down/unreachable and you su from user to root (or some other user),
this can take ~30 seconds+ to complete.
ps reveals ck-get-x11-server-pid is waiting on network connection to
the xserver that will eventually timeout.
Since it is impossible to get the process ID of the other end of a
TCP connection (manpages say Xlib uses TCP connections when
DISPLAY has a hostname: part) this patch skips getting the PID for
remote DISPLAYs.
References:
If the DISPLAY variable has a hostname component, e.g.
"remotehost:0.0", XOpenDisplay will use a TCP connection to it,
and the fd it returns later will be a TCP socket.
(http://tronche.com/gui/x/xlib/display/opening.html)
It is only possible to get the peer socket's PID for UNIX domain
sockets. (E.g. On linux, SO_PEERCRED is only usable for UNIX domain
sockets (i.e. PF_UNIX) )( http://linux.die.net/man/7/socket)
Bug report and patch provided by Joe Mullally.
https://bugs.launchpad.net/ubuntu/+source/consolekit/+bug/517323
|
|
Otherwise GCC nags us with warnings.
|
|
When building outside of linux, again isn't referenced so toss it
in an ifdef to suppress the warning.
|
|
atexit is part of stdlib.h.
|
|
When --enable-debug=full is passed, debugging is always enabled.
This patch also moves the debug check below the option parsing
so it properly takes effect. Additionally, a couple more debug
messages have been added and some quotation marks were removed
from the configure.ac script.
|
|
|
|
|
|
Patches taken from:
https://github.com/avsm/openbsd-ports/tree/master/sysutils/consolekit/patches
|
|
|
|
Include the patches listed in:
http://svnweb.freebsd.org/ports/head/sysutils/consolekit/files/
Credit goes to the FreeBSD team for this work.
|
|
Patches taken from
https://github.com/DragonFlyBSD/DPorts/tree/master/sysutils/consolekit
|
|
|
|
And build DragonflyBSD the same as FreeBSD.
|
|
|
|
Ck does NOTHING at the origin if its built without polkit or RBAC supports, except
display a warning using g_warning() (which does not make sense).
The trick is to to call do_stop()/do_restart() in the #else directive :)
|
|
|
|
See http://launchpad.net/bugs/1130923
|
|
|
|
In the else branch, e is used uninitialized. Move the cast outside
of the if/else block to prevent this.
|
|
|
|
|
|
The freebsd specific code does not handle empty string in environment
correctly. Fix submitted by Petr Salinger.
|
|
Signed-off-by: Eric Koegel <eric.koegel@gmail.com>
|
|
Patch written by Rafal Muzylo.
Signed-off-by: Eric Koegel <eric.koegel@gmail.com>
|
|
http://bugs.freedesktop.org/show_bug.cgi?id=47587.
Signed-off-by: Eric Koegel <eric.koegel@gmail.com>
|
|
Patch written by Robert Millan.
Signed-off-by: Eric Koegel <eric.koegel@gmail.com>
|
|
Patch written by Robert Millan.
Signed-off-by: Eric Koegel <eric.koegel@gmail.com>
|
|
|
|
NOTE: ConsoleKit is no longer actively maintained and this will most
likely be the final release. You are advised to switch to logind:
http://www.freedesktop.org/software/systemd/man/systemd-logind.service.html
|
|
|
|
|
|
Without this the UDEVDIR never gets substituted and the rules file is
installed to root filesystem /rules.d/ as opposed to /lib/udev/rules.d/
|
|
Fix the unconditional PATH_MAX usage in pam-ck-connector/pam-ck-connector.c by
using a variable-length malloc'ed buffer.
Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=552393
https://bugs.freedesktop.org/show_bug.cgi?id=24738
|
|
Currently consolekit fails to build on GNU/Hurd mainly because there's no
sysdeps backend for the GNU OS implemented.
The attached patch proposes a sysdeps-gnu backend, which implements the process
management using Hurd's libps, the *ttyent API for the part of the console
implementation and the rest using similar (valid) approaches of other backends.
Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=552393
https://bugs.freedesktop.org/show_bug.cgi?id=24738
|
|
https://bugs.freedesktop.org/show_bug.cgi?id=33924
|
|
|
|
|
|
The udev-acl tool has been removed from udev in version 182.
Add this tool to ConsoleKit for systems which don't use systemd-logind.
|
|
GDM screenscrapes the output and so we need the full username.
https://bugzilla.gnome.org/show_bug.cgi?id=650330
|
|
|
|
As reported in https://launchpad.net/bugs/544139, ConsoleKit sometimes fails to
track the active VT. This particular case was tracked down to a race condition
that happens if you try to open /dev/console while the current TTY is currently
being closed. This yields an -EIO error, in which case CK should just try
again.
For a more detailled summary of the problem from a kernel perspective, please
see https://bugs.launchpad.net/ubuntu/+source/linux/+bug/554172/comments/245 .
https://bugs.freedesktop.org/show_bug.cgi?id=31790
|
|
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
|
|
|
|
This lets apps know where consolekit helpers are installed.
https://bugs.freedesktop.org/show_bug.cgi?id=18427
|
|
|
|
|
|
|
|
This reverts commit 2782cc8d4950effbc4407455e72bd4750cef6e11.
VT_WAITEVENT is racy unfortunately, since events that happen between the
time we woke up from a VT_WAITEVENT and we go into the next VT_WAITEVENT
are lost completely.
|