summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2008-07-22regenerate the docs and xml from the specWilliam Jon McCann1-0/+3
2008-07-21fix up signal definitionWilliam Jon McCann1-2/+2
2008-06-11fix UnixUser to be uintWilliam Jon McCann1-5/+2
Pointed out by Lennart Poettering
2008-06-11use object paths instead of strings for signalsWilliam Jon McCann1-2/+2
Pointed out by Lennart Poettering
2008-05-05cleanly shutdown event logging threadWilliam Jon McCann2-4/+32
2008-05-05export login session id to the busWilliam Jon McCann5-4/+29
2008-05-05exit with the bus now that we're activated by the busWilliam Jon McCann1-57/+8
2008-04-19make sure to add all override parametersWilliam Jon McCann2-9/+23
2008-04-19fix the script to work with recent dbus-python api changesWilliam Jon McCann2-11/+10
2008-04-19always try to detect parameters for sessionWilliam Jon McCann4-45/+155
Treat the parameters passed in via OpenSessionWithParameters as overrides.
2008-04-18install scripts into $(prefix)/lib instead of $libdirWilliam Jon McCann3-4/+4
We don't want scripts going into lib64...
2008-04-16return PolicyKit results when not privileged for actionWilliam Jon McCann1-2/+3
2008-04-03initial login session id supportWilliam Jon McCann7-0/+141
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-25always create the directories we needWilliam Jon McCann3-40/+95
2008-02-25properly get display device on SolarisSimon Zheng1-4/+12
Mapping between device path and (major, minor). "/dev/vt" -- (15,*) "/dev/pts" -- (24,*) "/dev/console" -- (0,0) "NO_TTY_VALUE" - (-1,-1) Also, solaris VT device is named like this. /dev/console --- VT #1 /dev/vt/2 --- VT #2 /dev/vt/3 --- VT #3 /dev/vt/N --- VT #4
2008-02-25fix solaris x11-display-device when no vt availableBrian Cameron1-0/+11
This patch fixes ConsoleKit so it sets x11-display-device to "/dev/console" when not using VT.
2008-02-25solaris doesn't like printing nullBrian Cameron1-1/+1
2008-02-25fix display of active vt when vt is disabledBrian Cameron1-2/+6
This fixes the Active device so it is set to "/dev/console" when not using VT. Without this patch, the syslog reports messages like: Active device: /dev/vt/3508388860 Which is obviously wrong if not using VT at all.
2008-02-25fix solaris vt handling to work when no vt availableBrian Cameron1-3/+5
This fixes the patch that Simon Zhang sent you earlier so that it builds on machines without VT.
2008-02-19improve supporting Solaris VT switchingSimon Zheng2-1/+60
Here's a patch for ConsoleKit to improve supporting Solaris VT. Two changes are made. - Solaris supports synchronous event notification in STREAMS. Using this, we can avoid creating many threads for idle VTs. By setting the S_MSG flag in an I_SETSIG STREAMS ioctl, applications can get a synchronous notification of VT switching. In other words, these processes are able to receive a SIGPOLL signal when a VT switching succeeds. - Change a little command line of getting maximum vt console numbers.
2008-02-19don't include paths.h on systems that don't have itWilliam Jon McCann1-1/+0
2008-02-13create the log file with S_IROTH and don't touch the log on buildWilliam Jon McCann2-3/+2
2008-02-12ck_seat_get_active_session shouldn't return a null ssidWilliam Jon McCann3-24/+35
Da bus no likey nulls for object paths. Return false and set error if there is no active session.
2008-02-12guard against writing null string to keyfileWilliam Jon McCann3-10/+48
Also make criticals fatal when starting with --debug.
2008-02-12reverse the sense of the dbus policyWilliam Jon McCann1-0/+517
Deny first and then allow. Add a simple test script to check method access policy.
2008-02-11fix typo in dbus policy fileWilliam Jon McCann1-1/+1
2008-02-07touch the history file to create it for people not using packagesWilliam Jon McCann1-0/+2
2008-02-06mkdir /var/log/ConsoleKit at install timeWilliam Jon McCann1-0/+1
2008-02-01when a parsing error occurs don't return an empty eventWilliam Jon McCann1-8/+13
2008-01-29update gitignore filesWilliam Jon McCann1-0/+1
2008-01-29add a helper to write a system start record to the CK historyWilliam Jon McCann1-1/+1
2008-01-29add support for logging start/stop/restartWilliam Jon McCann3-13/+276
Also enable reporting this information with ck-history.
2008-01-28make polkit optional and use RBAC on SolarisBrian Cameron2-1/+77
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-28fixes for solarisBrian Cameron2-2/+3
Fixes two bugs I found in the code. The first is that we need some NULL protection around the g_strdup_printf where we build CK_SESSION_X11_DISPLAY to avoid a crash. Second, I noticed a bug in the ck_unix_pid_get_hash function where we weren't parsing the data right and causing the hash to not get set properly.
2008-01-28add session-type filtering to ck-historyWilliam Jon McCann1-0/+2
2008-01-28try to activate x11-display-device not only display-deviceWilliam Jon McCann1-2/+5
2008-01-23be a little smarter about how we compute the number of usersWilliam Jon McCann1-2/+94
2008-01-23history should log to /var/log not /var/runWilliam Jon McCann2-2/+2
2008-01-23actually register the error type with dbusWilliam Jon McCann1-0/+1
2008-01-23add GetSessions method to Manager interfaceWilliam Jon McCann3-0/+31
2008-01-23add error type to managerWilliam Jon McCann2-1/+27
2008-01-22initial stop/restart supportWilliam Jon McCann3-59/+624
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-12-08use VT_GETSTATE and tty0 to identify a console_ioctl on linuxPeter Jones1-4/+9
ConsoleKit tries to find a valid fd it can issue VT_WAITACTIVE against by iterating across a file list and issuing ioctl(fd, KDGKBTYPE, &arg), then checking the return value. Not all console devices support this ioctl, so in some cases it never finds a valid file descriptor to use, and from then on never marks any session active. We probably ought to be using something like VT_GETSTATE instead of a keyboard ioctl, but that's not sufficient to fix it. One fix that seems to work, though I'm not completely sure if it's the best answer, is to add /dev/tty0 to the list of files to try before /dev/console.
2007-10-22dump session leader infoWilliam Jon McCann2-3/+21
2007-10-22error out if unknown options are passed on command lineWilliam Jon McCann1-2/+9
2007-10-22move session leader stuff into a separate classWilliam Jon McCann4-377/+762
This will make it easier to dump/restore.
2007-10-22try to handle log rotationWilliam Jon McCann1-8/+45
2007-10-22add support for reporting from logrotated filesWilliam Jon McCann1-1/+8
2007-10-21add last mode, filtering by user/seat; shorten logged idsWilliam Jon McCann1-10/+24
2007-10-18use AC_GNU_SOURCE instead of #defineWilliam Jon McCann1-2/+0