summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
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 release0.1.2William 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 git0.1.1William 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>
2007-02-07reduce the debug buffer sizeWilliam Jon McCann1-6/+6
Reduce the buffer size in the debugging code.
2007-02-07start ck before halDavid Zeuthen1-1/+1
We should start CK before HAL (especially in light of some changes in HAL I'm working on); this patch does that for RH based systems. Please apply. Thanks!
2007-02-07don't refer to the hal repoWilliam Jon McCann1-2/+2
Oops.
2007-02-07add more informationWilliam Jon McCann1-3/+91
Add more information that was stolen from the HAL HACKING file. The parts on how to use git are particularly useful.
2007-02-06Don't keep last session active when switching to a VT withoutWilliam Jon McCann1-3/+1
a session registered on it. Patch from: David Zeuthen
2007-02-06Add some more debugging outputWilliam Jon McCann2-2/+10
2007-02-06Make threads use minimum stack size rather than the default.William Jon McCann1-1/+1
Patch from: mclasen@redhat.com
2007-01-12Rename dbus config file.William Jon McCann2-1/+1
2007-01-12Change a console-kit to ConsoleKit in a few placesWilliam Jon McCann2-9/+10
2007-01-11Post release version bumpWilliam Jon McCann1-1/+1
2007-01-11Update for 0.1.0 release0.1.0William Jon McCann2-1/+8