summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2014-10-08Fix crash on logout/login via SunRayHalton Huo1-1/+3
Turns out this bug is introduced by commit b4f893eb294883909759fc9fd825eade1a9f308c, which is later than when themulti-seat branch was created. This happens when user logout, c-k-d tries to activate the reserved Login window session, and send out the two signals in change_active_session(). The old_session is the session that user just log out, which should be removed after logout. There is race condition here, if the old_session get unrefed to 0 before the g_signal_emit call, then a core dump happens. Reported in: https://bugs.freedesktop.org/show_bug.cgi?id=28598
2014-10-08Fix ck-history truncating login namesEric Koegel1-11/+13
When not in compat-mode the max login name length is 64 which should cover most sane uses. Additionally this patch makes the command line options show up in --help. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=36364
2014-10-07Size of pointer 'P' used instead of size of its data.Eric Koegel2-7/+7
CppCheck marks this as a warning that P might be used in sizeof instead of P->tty_text so we'll use sizeof (P->tty_text) to make it explicit.
2014-10-07Call thread_data_free before g_thread_exitEric Koegel1-1/+1
2014-10-07ConsoleKit needs manpagesBrian Cameron5-0/+962
This patch adds man pages for the binaries it ships to /usr/bin and /usr/sbin. https://github.com/ConsoleKit2/ConsoleKit2/issues/4 https://bugs.freedesktop.org/show_bug.cgi?id=24824
2014-10-06Fix for rejected GetAll properties by GDBusTeodor MICU1-1/+1
See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=678506 for additional details.
2014-10-06Add pkg check for XLIBEric Koegel2-0/+5
2014-10-06OpenBSD: Fix buildajacoutot1-38/+79
Pulls in fixes from: http://anoncvs.estpak.ee/cgi-bin/cgit/openbsd-ports/tree/sysutils/consolekit/patches/patch-src_ck-sysdeps-openbsd_c
2014-10-06trivial: OpenBSD doesn't like continue in configure.acEric Koegel1-1/+1
2014-10-06Linux: Use /sys/class/tty/tty0/active for VT change notificationsEric Koegel4-5/+184
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-05Set source id to 0 after calling g_source_removeEric Koegel4-0/+5
Avoids some GLIB-Critical runtime messages by properly resetting the source id variables after removing the source. Patch provided by Manfred Hampl.
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