summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2016-03-14pam-ck allow VTNR to be double-digitEric Koegel1-1/+1
2016-03-01login_session_id will be G_MAXUINT32 when unsetEric Koegel1-2/+2
This will fix the display of ck-list-sessions on a 64-bit system and CK2 won't try to compare to a bogus ssid.
2016-02-29Don't set a default tmpfs sizeEric Koegel4-4/+4
There's no need to make the mount options more complicated than they need to be.
2016-02-29Handle the legacy 'user' property as an override settingEric Koegel1-0/+7
A DM can set the 'user' property rather than the 'unix-user' as an override to force a specific uid during session startup. We just need to convert that back to a 'unix-user' in the session leader before handing that data back to the manager.
2016-02-18trivial: Update pot fileEric Koegel1-36/+51
2016-02-14Add a 'Seats' section to the CK databaseEric Koegel1-0/+30
This way applications can know which seats are available and can easily walk the list to gather whatever information they need. The section will be something like [Seats] seats=/org/freedesktop/ConsoleKit/Seat1 /org/freedesktop/ConsoleKit/Seat2
2016-02-12Transifex translation updateConsoleKit2TransifexBot5-89/+360
Mode: default Matched 5 languages
2016-02-09Merge pull request #61 from Calrama/masterEric Koegel1-3/+23
More cgroup functionality
2016-02-02Change owner of newly created cgroup to owner of progress group leaderMoritz Maxeiner1-0/+20
2016-02-01Create cgroup on all controllers managed by cgmanagerMoritz Maxeiner1-3/+3
2016-01-26Add the netbsd tmpfs functionsEric Koegel1-0/+56
2016-01-23trivial: Always return TRUE from gdbus methodsEric Koegel1-1/+1
2016-01-23Be extra safe with the XDG_RUNTIME_DIR setupEric Koegel2-7/+12
Ensure old runtime dir is clean before using it in case we crashed on the last run. Lockdown the dbus properties of CkSession because we use those properties internally and they shouldn't change.
2016-01-23Add XDG_RUNTIME_DIR support to the PAM ck connectorEric Koegel1-0/+12
This way console logins also get the env variable
2016-01-23Implement XDG_RUNTIME_DIREric Koegel21-3/+874
This adds support for implementing the runtime dir spec. ConsoleKit2 will create $RUNDIR/users on the first session creation and then $RUNDIR/users/$uid for each user logging in that keeps an active session. CK2 will clean up the $uid folder once all sessions of that user have been closed. CK2 will also attempt to mount the user's rundir as a tmpfs mount owned by the user. This way if CK2 crashes the directory will get cleaned up on next system restart. CK2 will not create a runtime dir for root. http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html https://github.com/ConsoleKit2/ConsoleKit2/issues/41
2016-01-21Merge pull request #60 from msekletar/active-sessionEric Koegel1-2/+2
When assigning session to active VT prefer graphical sessions
2016-01-21Merge pull request #59 from msekletar/fix-undefined-behaviorEric Koegel2-2/+2
Fix undefined behavior
2016-01-19When assigning session to active VT prefer graphical sessionsMichal Sekletar1-2/+2
I case when we launch graphical session on top of text session on the same VT we want to mark newly created graphical session as active.
2016-01-19Fix undefined behaviorMichal Sekletar2-2/+2
It is unlikely that ck-log-system-start would crash because of this, but still it is better to have it fixed.
2016-01-13Updates for 1.0.1 release1.0.1Eric Koegel8-144/+164
2016-01-11Minor cleanupEric Koegel1-4/+2
Signed-off-by: Eric Koegel <eric.koegel@gmail.com>
2016-01-11Check for enough swap space before allowing hibernate operationRobby Workman1-1/+82
This code is from the upower-0.9 branch with very little change, so it's not really fair to call me the author... Consider this a first attempt at addressing CK2 Issue #55 Signed-off-by: Eric Koegel <eric.koegel@gmail.com>
2015-10-21XDG_VTNR supportFabrice Ménard1-0/+11
XDG_VTNR is another way to obtain the X11 display device. As SDDM sets this environment variable, it is now much simpler to use it with pam_ck_connector. Signed-off-by: Eric Koegel <eric.koegel@gmail.com>
2015-10-21Merge pull request #52 from obache/neatsrc/netbsd-supportEric Koegel3-22/+30
Imporve NetBSD support
2015-10-10Fix for NetBSD VT device naming schemeOBATA Akio1-0/+4
2015-10-10Fix behavior of ck_process_stat_get_tty on NetBSDOBATA Akio1-22/+6
To fit Linux's one * return NULL if invalid tty * return allocated string otherwise
2015-10-10Fix pid detection with ck_get_socket_perr_credentials on NetBSDOBATA Akio1-0/+20
NetBSD 5 and later have getpeereid(3), but it only for euid. Use getsockopt(2) with LOCAL_PEEREID if available in priority to it.
2015-09-15Merge pull request #50 from obache/neatsrc/netbsd-supportEric Koegel10-3/+589
Add NetBSD support
2015-09-15Merge pull request #51 from alienbob/alienbob-slackwareEric Koegel1-1/+1
Apply overlooked PREFIX/lib -> LIBDIR substitution
2015-09-10Apply overlooked PREFIX/lib -> LIBDIR substitutionEric Hameleers1-1/+1
2015-09-09Add NetBSD supportOBATA Akio10-3/+589
* based on patches for ConsoleKit 0.3.0 from NetBSD Packages Collection * catch up with help from sysdep implementation for OpenBSD and FreeBSD * ck-system-suspend is based on NetBSD powerd(8) sleep_button script
2015-08-24Merge pull request #47 from fluxer/masterEric Koegel1-2/+3
Filter out the kdm user
2015-08-24Filter out the kdm userIvailo Monev1-2/+3
2015-08-24trivial: Update pot fileEric Koegel5-33/+33
2015-08-24Transifex translation update Mode: default Matched 4 languagesConsoleKit2TransifexBot4-116/+116
2015-08-24Merge pull request #43 from rworkman/trivialEric Koegel2-3/+3
Fix some libdir/scripts stuff missed in 4d87a25ea0af
2015-08-23Fix some libdir/scripts stuff missed in 4d87a25ea0afRobby Workman2-3/+3
2015-08-22Revert "Minor code refactoring"Eric Koegel5-121/+163
This reverts commit bee63889f4a0b8f57807a61d8396346cec8cd5b1. There are some cases where ConsoleKit2 would crash after successfully suspending so revert this commit.
2015-08-12Fix two install issues with 90-consolekitKoop Mast1-2/+1
* Don't try to run "chmod +x" on 90-consolekit, it is not a executable. * Use INSTALL_SCRIPT instead of INSTALL_PROGRAM. According to a comment in the header of 90-consolekit this file is sourced by Xsession(5), not executed. Now it also doesn't try to run strip on the 90-consolekit file.
2015-08-10Merge pull request #38 from ConsoleKit2TransifexBot/masterEric Koegel1-7/+9
Transifex translation update
2015-08-10Transifex translation updateConsoleKit2TransifexBot1-7/+9
Mode: default Matched 4 languages
2015-08-10trivial: updates for release1.0.0Eric Koegel7-10/+33
2015-08-09Ensure we add CONSOLE_KIT_LIBS to libckEric Koegel6-200/+244
Otherwise we will break the build on some platforms. Also update the translations.
2015-08-09Minor code refactoringEric Koegel5-163/+121
This removes and cleans up some duplicated code. Both the ck-manager and the ck-session had an implementation to get the calling uid/pid so it's now moved to a common location. The inhibit changed signal has been made more explicit in when the delay is removed. The polkit permissions was duplicated over two functions and has been moved to a single common one. So this patch is just minor house keeping.
2015-08-09Filter out the sddm userEric Koegel1-2/+3
This way CK2 doesn't get confused and think multiple users are logged in when it's just a service account.
2015-08-03Merge pull request #36 from ConsoleKit2TransifexBot/masterEric Koegel4-69/+27
Transifex translation update
2015-08-03Transifex translation updateConsoleKit2TransifexBot4-4/+4
Mode: default Matched 4 languages
2015-08-03Transifex translation updateConsoleKit2TransifexBot4-69/+27
Mode: default Matched 4 languages
2015-08-02Update gettext to avoid a warning messageEric Koegel9-46/+452
Also improve the translation messages in the process groups and mark that file translatable.
2015-07-28Update potfileEric Koegel5-181/+199