summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2014-10-05Return early when remote DISPLAY variable setEric Koegel1-0/+5
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
2014-10-05Undefine _FORTIFY_SOURCE before redefining itEric Koegel4-0/+4
Otherwise GCC nags us with warnings.
2014-10-05unused label 'again'Eric Koegel1-1/+4
When building outside of linux, again isn't referenced so toss it in an ifdef to suppress the warning.
2014-10-05Do not use deprecated glib function g_atexitEric Koegel1-1/+1
atexit is part of stdlib.h.
2014-10-05Add an --enable-debug=full optionEric Koegel3-9/+27
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.
2014-10-05Fix some unused variable warningsEric Koegel1-6/+5
2014-10-04Add additional header checksEric Koegel1-1/+2
2014-10-04Add OpenBSD supportRobert Nagy12-3/+625
Patches taken from: https://github.com/avsm/openbsd-ports/tree/master/sysutils/consolekit/patches
2014-10-04Update makefiles and remove unused codeEric Koegel6-18/+8
2014-10-04Improve FreeBSD supportEric Koegel8-34/+225
Include the patches listed in: http://svnweb.freebsd.org/ports/head/sysutils/consolekit/files/ Credit goes to the FreeBSD team for this work.
2014-10-03Improve DragonFlyBSD supportEric Koegel2-2/+77
Patches taken from https://github.com/DragonFlyBSD/DPorts/tree/master/sysutils/consolekit
2014-10-02Fix missing opening [ in polkit checkEric Koegel1-1/+1
2014-10-02Update configure.acEric Koegel1-12/+20
And build DragonflyBSD the same as FreeBSD.
2014-10-01Remove unused variableEric Koegel1-1/+0
2014-10-01Be able to shutdown or reboot even without polkit or RBAC supportsRomain Perier1-0/+2
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 :)
2014-10-01udev-acl install to usrEric Koegel1-3/+4
2014-10-01Add support for devices with long namesAleix Conchillo Flaqué1-1/+1
See http://launchpad.net/bugs/1130923
2014-10-01Cleanup console tag files on application startup and shutdown.Eric Koegel1-1/+41
2014-09-30Fix uninitialized variable: eEric Koegel1-1/+2
In the else branch, e is used uninitialized. Move the cast outside of the if/else block to prevent this.
2014-09-30Update HACKING documentEric Koegel1-28/+15
2014-09-30Update READMEEric Koegel1-1/+5
2014-09-30kfreebsd - ignore empty environmentsEric Koegel1-0/+2
The freebsd specific code does not handle empty string in environment correctly. Fix submitted by Petr Salinger.
2014-09-30Clean up some compiler warnings and deprecated functionsEric Koegel17-36/+66
Signed-off-by: Eric Koegel <eric.koegel@gmail.com>
2014-09-30Use correct type in tools/ck-history.c (Bug 51120)Eric Koegel1-2/+2
Patch written by Rafal Muzylo. Signed-off-by: Eric Koegel <eric.koegel@gmail.com>
2014-09-30Configure switch for PolicyKit. See, ↵Samuli Suominen1-8/+15
http://bugs.freedesktop.org/show_bug.cgi?id=47587. Signed-off-by: Eric Koegel <eric.koegel@gmail.com>
2014-09-30Enables the FreeBSD VT ioctls on GNU/kFreeBSD (Bug 73258)Eric Koegel1-2/+2
Patch written by Robert Millan. Signed-off-by: Eric Koegel <eric.koegel@gmail.com>
2014-09-30Fallback to getpeereid() on FreeBSD and GNU/kFreeBSD (Bug 73257)Eric Koegel2-2/+20
Patch written by Robert Millan. Signed-off-by: Eric Koegel <eric.koegel@gmail.com>
2014-09-30Update README for forkEric Koegel1-6/+3
2013-07-19Update NEWSMichael Biebl1-0/+13
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
2013-07-19build-sys: Use xz compressionMichael Biebl1-1/+1
2012-03-20build-sys: install run-seat.d symlink for udev-aclSamuli Suominen1-0/+4
2012-03-20build-sys: missing AC_SUBST for UDEVDIRSamuli Suominen1-0/+1
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/
2012-03-19Fix unconditional PATH_MAX usagePino Toscano1-3/+11
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
2012-03-19Add support for GNU/HurdPino Toscano3-0/+413
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
2012-03-19build-sys: don't install systemd units when using --without-systemdsystemunitdirMichael Biebl1-5/+7
https://bugs.freedesktop.org/show_bug.cgi?id=33924
2012-03-19build-sys: run autoupdateMichael Biebl1-30/+16
2012-03-19build-sys: remove useless dbus version checkMichael Biebl1-33/+0
2012-03-19Import udev-acl tool from udevMichael Biebl5-0/+539
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.
2011-05-24ck-history: don't truncate --frequent output to 8 charsRay Strode1-1/+1
GDM screenscrapes the output and so we need the full username. https://bugzilla.gnome.org/show_bug.cgi?id=650330
2011-05-03post release bumpLennart Poettering2-1/+8
2011-05-03Retry opening console device on EIOColin Watson1-0/+17
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
2011-04-14systemd: don't pull in sysinit.targetLennart Poettering3-3/+0
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.
2011-02-17build-sys: post release version bumpLennart Poettering2-2/+7
2011-02-17build-sys: make sure make install can be run twice in a rowLennart Poettering1-0/+5
https://bugs.freedesktop.org/show_bug.cgi?id=32130
2011-01-20systemd: fix reference to systemd unitsLennart Poettering2-2/+2
2010-12-17ck-connector: advertise libexecdirDJ Lucas1-0/+1
This lets apps know where consolekit helpers are installed. https://bugs.freedesktop.org/show_bug.cgi?id=18427
2010-11-19systemd: fix name of unitLennart Poettering3-3/+3
2010-11-19build-sys: post release version bumpLennart Poettering1-1/+1
2010-11-17update NEWSLennart Poettering1-0/+8
2010-11-17Revert "linux: Use VT_WAITEVENT if available to avoid spawn too many threads"Lennart Poettering4-87/+8
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.