summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2010-11-17Revert "linux: Check for VT_WAITEVENT ioctl during runtime"Lennart Poettering1-49/+9
This reverts commit 24dc214f55e7c7c17d888d0ccf94cd3625767462. 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.
2010-11-17systemd: simplify unit files a littleLennart Poettering3-9/+9
2010-11-17systemd: log shutdown when doing kexec rebootLennart Poettering1-1/+4
2010-09-20dbus: bump dependency on dbus-glib to 0.82Michael Biebl8-8/+1
dbus-glib >= 0.82 requires dbus >= 1.1 so we can safely remove DBUS_API_SUBJECT_TO_CHANGE.
2010-09-20linux: Check for VT_WAITEVENT ioctl during runtimeMichael Biebl1-9/+49
Since 2782cc8d4950effbc4407455e72bd4750cef6e11 ConsoleKit fails, if it has been compiled on a linux kernel >= 2.6.32 but is run with an older kernel. Check for VT_WAITEVENT ioctl during runtime and fallback to the old behaviour of creating a thread for every possible vt.
2010-09-20build-sys: Bump GLIB_REQUIRED_VERSION to 2.14 for GRegexMichael Biebl1-1/+1
https://bugs.freedesktop.org/show_bug.cgi?id=30041
2010-09-20build-sys: extend configure check for kfreebsdLuca Favatella1-1/+1
https://bugs.freedesktop.org/show_bug.cgi?id=30051 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=511270
2010-09-14systemd: make sure the file system is writable before we write log dataLennart Poettering3-3/+6
2010-09-07post release version bumpLennart Poettering1-1/+1
2010-09-06systemd: keep around console-kit-log-system-start.service after it was run ↵Lennart Poettering1-0/+1
to avoid that it can be triggered twice
2010-09-06linux: Use VT_WAITEVENT if available to avoid spawn too many threadsKan-Ru Chen4-8/+87
Starting from linux kernel 2.6.32 there is a new ioctl VT_WAITEVENT which can monitor vt switches and return new vt number. https://bugs.freedesktop.org/show_bug.cgi?id=17720
2010-09-05NEWS: update for 0.4.2Lennart Poettering1-1/+12
2010-09-05systemd: install unit files for CK logging callsLennart Poettering5-2/+66
This follows the basic scheme of the Upstart scripts we already ship
2010-08-12systemd: install systemd unit filesLennart Poettering6-1/+40
2010-08-03Only load seat files with a .seat extensionWilliam Jon McCann2-4/+8
2010-08-03Fix a few memory leaksAnders Kaseorg2-1/+9
https://bugs.freedesktop.org/show_bug.cgi?id=26227
2010-06-30Only set sessions to be is-local=true if set by a trusted partyWilliam Jon McCann2-11/+165
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
2010-05-20Enhancement CanActivateSessions for OpenSolaris.Halton Huo5-0/+32
VT switching is always enabled on Linux, but for OpenSolaris VT switching can be truned of by 'svcadm disable vtdaemon'. So we should also check whether the service vtdaemon is online on OpenSolaris. https://bugs.freedesktop.org/show_bug.cgi?id=26055
2010-05-20Revert "Enhancement CanActivateSessions for OpenSolaris."Halton Huo3-39/+1
This reverts commit b2e65a0ab7f4c417c85433e3e9bf97befbe6da3b.
2010-04-19Enhancement CanActivateSessions for OpenSolaris.Halton Huo3-1/+39
VT switching is always enabled on Linux, but for OpenSolaris VT switching can be truned of by 'svcadm disable vtdaemon'. So we should also check whether the service vtdaemon is online on OpenSolaris. https://bugs.freedesktop.org/show_bug.cgi?id=26055
2010-01-29format not a string literal and no format argumentsFrederic Crozat2-9/+9
Fixes http://bugs.freedesktop.org/show_bug.cgi?id=24152
2010-01-28Use the correct property ID for idle-hintWilliam Jon McCann1-1/+1
https://bugs.freedesktop.org/show_bug.cgi?id=25703
2010-01-28Don't segfault if the seats file is invalid.Michael Biebl1-0/+4
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=561106
2009-12-21Don't take bus name until readyRay Strode1-8/+8
Previously, we would take a bus name right away, but not register the manager object until later. This causes a race when being activated by a method call on the manager object, where ConsoleKit gets started but the method call fails. https://bugs.freedesktop.org/show_bug.cgi?id=25744
2009-12-21Don't daemonize when activatedMatthias Clasen1-1/+1
It confuses some versions of D-Bus and isn't needed (or wanted it). http://bugs.freedesktop.org/show_bug.cgi?id=25642
2009-11-10Implement CanRestart and CanStop interfaces on Solaris.Halton Huo1-9/+22
Fixes http://bugs.freedesktop.org/show_bug.cgi?id=24992
2009-11-03Identify major device number for vt rather than hard code as 15.Halton Huo1-1/+21
Fixes bug http://defect.opensolaris.org/bz/show_bug.cgi?id=12322 This is solaris only bug, won't affect other platform.
2009-10-16Fix bug console-kit-daemon exit when receiving SIGPOLL on Solaris.Halton Huo1-0/+2
Refer to bug http://defect.opensolaris.org/bz/show_bug.cgi?id=11612
2009-10-16Correct tty return value after VT support is integrated in Solaris.Halton Huo1-19/+0
2009-09-25Turn on silent build by defaultRay Strode1-1/+1
It's all the rage these days and makes seeing warnings much easier.
2009-09-24fix styleWilliam Jon McCann1-7/+14
2009-09-24post release version bumpWilliam Jon McCann1-1/+1
2009-09-24Another? So soon?William Jon McCann1-0/+8
2009-09-24Fix a crasherWilliam Jon McCann1-1/+0
2009-09-24fix a small memory leakMatthias Clasen1-6/+1
2009-09-24update email addressWilliam Jon McCann1-2/+1
2009-09-24post release version bumpWilliam Jon McCann1-1/+1
2009-09-24Update for releaseWilliam Jon McCann3-2/+20
2009-09-24bump version before new releaseWilliam Jon McCann2-2/+2
2009-09-14close file descriptors before exit funcHalton Huo1-0/+1
This bug is copied from http://defect.opensolaris.org/bz/show_bug.cgi?id=10291. The patch is attached, Please review it. Fixes https://bugs.freedesktop.org/show_bug.cgi?id=22986
2009-09-14log the kernel release and boot arguments at start timeWilliam Jon McCann4-5/+77
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-09-14fix a few small leaksWilliam Jon McCann1-5/+10
Fixes https://bugs.freedesktop.org/show_bug.cgi?id=23939
2009-08-12Add seat.d/ callout directory and guarantee we dump the database before ↵Lennart Poettering5-25/+200
callout invocation This adds a callout directory called seat.d/ that follows the basic session.d/ semantics but works on seats instead of sessions. As replacement for the old session.d/ 'session_active_changed' semantics seat.d/ knows 'seat_active_session_changed'. Which combines the two callouts necessary for session_active_changed into one. This has various advantages: it's not as racy, allows the suppressing of ACL permission changes when switching between sessions of the same user, reduces the amount of disk IO and finally is less ugly. This patch also moves all callout invocations into the CkManager. This has the advantage that we can guarantee to have fully dumped the CK database before the callout. In summary, the session.d/ directory will now get two types of callout invocations: session_added session_removed In contrast, seat.d/ gets three types: seat_added seat_removed seat_active_session_changed The 'seat_active_session_changed' callout type gets two sets of environment variables describing the old resp. the new session that is active. Either set can be left out if no session was active before, or no session will be active after the switch. This is similar to the logic behind D-Bus' NameOwnerChanged. This patch duplicates CkSeat's 'session-removed' signal into 'session-removed-full' (and friends). Reason for that is that the signal forwarded via D-Bus needs the session id as string while the callout code needs the session itself as object. Since at the time of invocation the CkSeat is no longer in the seats hashtable it is hence necessary to pass the object in as argument to the signal handlers, which makes this duplification necessary to not confuse dbus-glib. For a similar reason 'active-session-changed' is duplicated as well.
2009-08-12get rid of session.d's session_active_changed calloutLennart Poettering2-3/+7
The 'session_active_changed' callout is an invitaton to racy misuses since it splits up the session switches into two events. This patch gets rid of it. At this point there are two known users of the session.d/ callouts: - Suse/Ubuntu ship a script for emulating pam_atconsole style /var/run/console management for supporting D-Bus' at_console feature properly. Both Martin Pitt and Kay Sievers however are happy with having this feature go away. In addition I prepared a patch for D-Bus which makes the need for these scripts go away entirely. That patch is currently awaiting review. - udev's udev-acl tool currently uses this. However this doesn't work correctly anyway since it relies on that the CK database is correctly dumped before the tool is invoked, which CK does not handle properly at this time. In fact fixing this problem is the main reason why I came up with this patch series. Kay is also very interested in seeing the 'session_active_changed' logic go away. A later commit introduces a replacement functionality that is less racy. Please note that this patch does not drop session.d/ in its entirety. Only the 'session_active_changed' type callout is removed. Scripts that only rely on 'session_added'/'session_removed' will continue to work fine, and will continue to be supported.
2009-08-12database: write the console database to disk before signalling via dbusLennart Poettering3-27/+23
We simply change the order how the signal handlers for D-Bus and the database dumping are registered. According to the gobject docs it is guaranteed that the signal handlers are run in the same order as they are registered, so this should be safe and have the desired effect.
2009-08-11Enforce that the env array has the right sizeLennart Poettering1-0/+2
Hit an assert if folks add env vars but don't increase the env var array size.