summaryrefslogtreecommitdiff
path: root/tools
AgeCommit message (Collapse)AuthorFilesLines
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-06Add pkg check for XLIBEric Koegel1-0/+3
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 Koegel1-0/+1
Otherwise GCC nags us with warnings.
2014-10-04Add OpenBSD supportRobert Nagy7-0/+155
Patches taken from: https://github.com/avsm/openbsd-ports/tree/master/sysutils/consolekit/patches
2014-10-04Update makefiles and remove unused codeEric Koegel2-3/+3
2014-10-04Improve FreeBSD supportEric Koegel5-7/+148
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-01udev-acl install to usrEric Koegel1-3/+4
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-30Clean up some compiler warnings and deprecated functionsEric Koegel5-6/+14
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>
2012-03-20build-sys: install run-seat.d symlink for udev-aclSamuli Suominen1-0/+4
2012-03-19Import udev-acl tool from udevMichael Biebl4-0/+518
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
2010-09-20dbus: bump dependency on dbus-glib to 0.82Michael Biebl1-1/+0
dbus-glib >= 0.82 requires dbus >= 1.1 so we can safely remove DBUS_API_SUBJECT_TO_CHANGE.
2010-06-30Only set sessions to be is-local=true if set by a trusted partyWilliam Jon McCann1-9/+1
https://bugs.freedesktop.org/show_bug.cgi?id=28377
2010-06-11Add a --since option to show entries in a time windowWilliam Jon McCann1-22/+74
Doesn't load any history files it doesn't need to which should help performance on systems with long histories. https://bugs.freedesktop.org/show_bug.cgi?id=25660
2009-09-14log the kernel release and boot arguments at start timeWilliam Jon McCann2-3/+34
Someone needs to add support for non-Linux platforms. Fixes https://bugs.freedesktop.org/show_bug.cgi?id=23948
2009-09-14show display in host field if the host isn't setWilliam Jon McCann1-7/+15
This is consistent with how we write the wtmp records in GDM. https://bugs.freedesktop.org/show_bug.cgi?id=23944
2009-09-14print the uptime for the reboot items in the reportWilliam Jon McCann1-2/+39
Fixes https://bugs.freedesktop.org/show_bug.cgi?id=23279
2009-09-14fix logic for finding session remove eventsWilliam Jon McCann1-4/+4
The logic is supposed to find any type of removal event. This can be one of CK_LOG_EVENT_SEAT_SESSION_REMOVED, CK_LOG_EVENT_SYSTEM_START, CK_LOG_EVENT_SYSTEM_STOP, or CK_LOG_EVENT_SYSTEM_RESTART. This is used to determine if the removal was normal or RECORD_STATUS_CRASH, or RECORD_STATUS_DOWN. And indicated in the report log as something like: "Thu Sep 3 21:28 - down (20:20)"
2009-07-20Get VT from X display if no controlling ttyRay Strode1-0/+72
In some cases a controlling tty won't be able available to peek at to find the VT of the X display. In those cases, we fall back to looking at the XFree86_VT property. We can do this because we know the display is a local display since we've already gotten peer credentials from its socket.
2009-02-11parse gecos field to get real nameWilliam Jon McCann1-2/+13
2008-07-22fix use of unix-user as intWilliam Jon McCann1-6/+6
2008-07-21fix location of scripts againWilliam Jon McCann1-1/+1
2008-05-05export login session id to the busWilliam Jon McCann1-2/+7
2008-04-18oops one more placeWilliam Jon McCann1-1/+1
2008-04-18install scripts into $(prefix)/lib instead of $libdirWilliam Jon McCann3-3/+3
We don't want scripts going into lib64...
2008-04-03initial login session id supportWilliam Jon McCann1-0/+10
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
2008-02-29display uid as unix-user to match apiWilliam Jon McCann1-1/+1
2008-02-19don't include paths.h on systems that don't have itWilliam Jon McCann1-0/+5
2008-02-12update for releaseWilliam Jon McCann1-1/+1
2008-02-11add a ck-launch-session toolWilliam Jon McCann3-0/+99
This tool opens a session with ConsoleKit and runs a command in it.
2008-02-11don't set the session-type to the command nameWilliam Jon McCann1-6/+0
2008-02-11update for releaseWilliam Jon McCann1-0/+2
2008-02-11add tools to log restart and stop eventsWilliam Jon McCann3-0/+368
This should probably be used by init instead of logging the event from CK.
2008-02-01when a parsing error occurs don't return an empty eventWilliam Jon McCann1-6/+6
2008-01-29update gitignore filesWilliam Jon McCann1-1/+3
2008-01-29add a helper to write a system start record to the CK historyWilliam Jon McCann2-0/+187
2008-01-29add support for logging start/stop/restartWilliam Jon McCann1-156/+288
Also enable reporting this information with ck-history.
2008-01-28allow session type filtering for all report formatsWilliam Jon McCann1-9/+22
2008-01-28make polkit optional and use RBAC on SolarisBrian Cameron2-20/+2
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.
2008-01-28add session-type filtering to ck-historyWilliam Jon McCann1-8/+14
2008-01-23history should log to /var/log not /var/runWilliam Jon McCann1-1/+1
2008-01-22initial stop/restart supportWilliam Jon McCann10-16/+186
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.
2007-10-22add support for reporting from logrotated filesWilliam Jon McCann2-12/+122
2007-10-22add a basic --frequent reportWilliam Jon McCann1-0/+109
2007-10-21add last mode, filtering by user/seat; shorten logged idsWilliam Jon McCann1-11/+166
2007-10-19check for oldest being nullWilliam Jon McCann1-2/+4
2007-10-19rename --last to --last-compatWilliam Jon McCann1-3/+3