summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2007-03-06allow for the possibility of matching multiple sessions for deviceWilliam Jon McCann1-15/+145
In the event that there is more than one session that matches a particular tty when the VT changes we use the following rule: 1. take the oldest session where display-device == active VT device 2. take the oldest session where x11-display-device == active VT device
2007-03-05add x11-display-device to parse tableWilliam Jon McCann2-6/+9
2007-03-05try to parse the real meaning of PAM_TTYWilliam Jon McCann1-0/+10
2007-03-05fix the example codeWilliam Jon McCann1-0/+4
2007-03-05use with_parameters and add remote-host-name if availableWilliam Jon McCann1-10/+39
2007-03-05add a with_parameters function to connectorWilliam Jon McCann3-194/+255
2007-03-05rename host-name in one more placeWilliam Jon McCann1-6/+6
2007-03-05rename host-name to remote-host-name to make it more intuitiveWilliam Jon McCann6-47/+44
2007-03-05add x11-display-device to ck-list-sessionsWilliam Jon McCann1-6/+22
2007-03-05add two more proc sysdep functionsWilliam Jon McCann2-0/+57
2007-03-05add x11-display-device attributeWilliam Jon McCann4-100/+164
In certain cases it is necessary to distinguish the display-device (tty of session leader) from the x11-display-device (tty of xorg process).
2007-03-05use an async job to collect session infoWilliam Jon McCann5-78/+681
Use an async helper job to collect session info for the OpenSession() method.
2007-03-05allow uid 0 to use the pam moduleDavid Zeuthen1-1/+0
So in Fedora's Rawhide /bin/login is now using libck-connector via the PAM module and CK will track such sessions. However, it doesn't work when root logs in and I think that's a bug. Attached patch should fix it (is already in Rawhide). Thanks. David
2007-03-02add linux backends for collecting session informationWilliam Jon McCann6-10/+560
These tools will be used to generate and verify the parameters used to open a session.
2007-03-01dist the manual page for the PAM moduleDavid Zeuthen1-0/+4
2007-03-01add a test program for the PAM moduleWilliam Jon McCann4-5/+174
Basically this is a mini login. It authenticates, opens a session, sleeps 20 seconds, and then closes the session.
2007-03-01fix some typosWilliam Jon McCann1-4/+3
2007-02-28add a test program for the connectorWilliam Jon McCann2-9/+135
Add a simple test app for the connector. Adapted from the example David put in the header.
2007-02-28change the connector API a bit + misc analityWilliam Jon McCann3-519/+762
I modified the API of the new connector a bit. * include errors * make names a bit more consistent with what they do * have symmetry between open and close * use refcounting * do parameter checking on inputs I also made some changes to whitespace and style. And converted descriptions to gtkdoc style comments.
2007-02-28add a connector library and (reluctantly) a PAM moduleDavid Zeuthen9-0/+890
Here are some patches to add one library and one PAM module so other programs (apart from gdm) can easily interact with ConsoleKit. It's mainly going to be used, I think, by login(1) and xinit(1). I'm not super happy about doing a PAM module but the Fedora util-linux package maintainer seems to be insist on this instead of just patching login(1). The PAM module isn't built by default. Both pieces of code are licensed under the MIT license as god knows what might want to use them. Sounds good to you?
2007-02-28add framework for backend toolsWilliam Jon McCann3-0/+64
System dependent tools will be built in subdirectories under tools.
2007-02-28lay the groundwork for making open session asyncWilliam Jon McCann1-118/+252
Restructure things a bit so that we can be completely async about creating sessions. We want to do this so we can use callouts to gather session info or to verify info. Also make the OpenSession create a parameter list and then create the session rather than creating the session and changing attributes. This is less racy and the session will be complete and correct before any signals are emitted.
2007-02-28don't rely on evironment getting updated in python scriptsWilliam Jon McCann1-1/+4
2007-02-27install the list-sessions tool as ck-list-sessionsWilliam Jon McCann1-4/+4
2007-02-26post release version bumpWilliam Jon McCann1-2/+2
2007-02-26update news for releaseWilliam Jon McCann2-1/+15
Also fix a distcheck error.
2007-02-26rename some items in proc.h api; add some more error checkingWilliam Jon McCann3-64/+99
Make the proc.h API more coherent. Convert some warnings to debug statements. Fix two leaks. Add more error checking.
2007-02-21add support for glib < 2.12William Jon McCann2-3/+49
Copy the iso8601 function from glib to support versions less than 2.12.
2007-02-21make separate test scripts for open session methodsWilliam Jon McCann3-0/+45
2007-02-21don't use null parametersWilliam Jon McCann1-15/+17
2007-02-20add a system-idle-hint and system-idle-since-hintWilliam Jon McCann3-22/+166
The system idle hint is TRUE when there are no busy (ie non-idle) sessions. So the system is idle when there are no sessions or all sessions are idle.
2007-02-20make the idle hint getters sync dbus methodsWilliam Jon McCann3-11/+20
This makes it easier to use from C code. Also fix a bug where we weren't emitting the argument in the idle-hint-changed signal.
2007-02-20rename idle methods and signal to indicate they are hintsWilliam Jon McCann4-55/+55
Rename GetIdle to GetIdleHint (etc) to make it clear that these are not authoritative properties.
2007-02-19limit the use of errnoWilliam Jon McCann1-5/+10
Try to limit the use of errno in case it can change.
2007-02-19handle the no console fd case betterWilliam Jon McCann2-10/+38
Don't spew warnings when getfd() can't find a suitable console fd. Also add a comment to note where getfd.c comes from.
2007-02-19improve thread safetyWilliam Jon McCann1-52/+174
Change to using an async queue for events from VT watching threads. Add mutex protection to shared data. Compress the event queue when possible by discarding all but the most recent VT activation event.
2007-02-15split list-sessions output onto separate linesWilliam Jon McCann1-3/+3
It was getting impossible to read all on one line.
2007-02-15add creation and idle-since timesWilliam Jon McCann4-2/+76
Added GetCreationTime and GetIdleSince methods. And added the output to the list-sessions tool.
2007-02-15implement get/set idle methodsWilliam Jon McCann3-11/+173
Add the GetIdle and SetIdle methods, and the IdleChanged signal. SetIdle is restricted to the uid of the session in question.
2007-02-15restrict access to CloseSessionWilliam Jon McCann1-0/+77
Only allow the uid and pid that opened the session to close it.
2007-02-15convert all tabs to spacesWilliam Jon McCann3-93/+93
2007-02-15fix compiler warningWilliam Jon McCann1-3/+6
2007-02-13fix warning from missing includeWilliam Jon McCann2-5/+6
2007-02-13create and delete pid fileS.Çağlar Onur1-1/+24
While try to play with ConsoleKit i realize it cannot create its pid file, so if needed attached patch adds that with copy/paste from PolicyKit :).
2007-02-12post release version bumpWilliam Jon McCann1-2/+2
2007-02-12add more warnings when building from gitWilliam Jon McCann1-2/+1
2007-02-12update for releaseWilliam Jon McCann1-0/+12
2007-02-12use the supplied vt number when updating active sessionWilliam Jon McCann1-12/+19
Just the use vt number given by the vt-manager instead of asking for the current vt again. A little bit less racy this way.
2007-02-08Bump thread stack size up to 64kWilliam Jon McCann1-1/+1
The minimum stack size 16k seems to crash glibc when we do printf in debug.
2007-02-07support for reconnecting to the system busWilliam Jon McCann1-45/+153
Instead of exiting on disconnect this attempts to reconnect. Based on patch from: Timo Hoenig <thoenig@suse.de>