summaryrefslogtreecommitdiff
path: root/src/login
AgeCommit message (Collapse)Author
2012-10-13log: introduce a macro to format message idZbigniew Jędrzejewski-Szmek
The MESSAGE_ID=... stanza will appear in countless number of places. It is just too long to write it out in full each time. Incidentally, this also fixes a typo of MESSSAGE is three places.
2012-10-09logind: expose missing signals in Session bus objectsLennart Poettering
2012-10-03man: handle-sleep-key is invalid, replace it with handle-suspend-key and ↵Сковорода Никита Андреевич
handle-hibernate-key in systemd-inhibit help and man.
2012-10-01pam: check environ[] for XDG_SEAT as fallbackLennart Poettering
This is useful for systems such as kmscon which want to invoke classic /sbin/login but use it on multiple seats.
2012-09-21multi-seat-x: drop a lot of unnecessary codeLennart Poettering
2012-09-21pam: document that we don't do error checking when parsing vtnrLennart Poettering
2012-09-21login: missing break for getopt ARG_NO_ASK_PASSWORD in loginctlLukas Nykryn
2012-09-21login: check return value of session_get_idle_hintVáclav Pavlín
2012-09-21logind: check return value, log warning on errorVáclav Pavlín
2012-09-21multi-seat-x: drop framebuffer specific stuff, as we have a DRM driver nowDave Airlie
2012-09-21Revert "multi-seat: drop multi-seat-x wrapper, as upstream X can handle ↵Lennart Poettering
multi-seat graphics on its own now" This reverts commit 636d30a0895f17eca8313d50f9b2fc1ec5e128da. Turns out we will need the multi-seat wrapper a bit longer, however without the fb-specific bits in it.
2012-09-21logind: split up HandleSleepKey= into HandleSuspendKey= and HandleHibernateKey=Lennart Poettering
The kernel and X11 distuingish these two, and Thinkpad keys have both, hence we really should distinguish them too.
2012-09-21multi-seat: drop multi-seat-x wrapper, as upstream X can handle multi-seat ↵Lennart Poettering
graphics on its own now
2012-09-21logind: allow users to override their own suspend/sleep inhibitorsLennart Poettering
2012-09-19util: define union dirent_storage and make use of it everywhereLennart Poettering
Make sure to allocate enough space for readdir_r(). https://bugzilla.redhat.com/show_bug.cgi?id=858754
2012-09-19logind: if a lid-switch lock was taken while the lid was closed, recheck lid ↵Lennart Poettering
status when the lock is released
2012-09-19logind: properly parse handle-lid-switch inhibitorLennart Poettering
2012-09-19man: document new inhibitor typesLennart Poettering
2012-09-19logind: rework power key/suspend key/lid switch handlingLennart Poettering
http://lists.freedesktop.org/archives/systemd-devel/2012-September/006604.html https://bugzilla.gnome.org/show_bug.cgi?id=680689 This changes the meaning of the HandlePowerKey=/HandleSleepKey=/HandleLidSwitch= setting of logind.conf
2012-09-18logind: split up inhibit acquire policyLennart Poettering
2012-09-17logind: make VT reservation logic compatible with containersLennart Poettering
2012-09-17logind: make sure there's always a getty available on TTY6Lennart Poettering
Previously, if X allocated all 6 TTYs (for multi-session for example) no getty would be available anymore to guarantee console-based logins. With the new ReserveVT= switch in logind.conf we can now choose one VT (6 by default) that will always be subject to autovt-style activation, i.e. we'll always have a getty on TTY6, and X will never take possession of it.
2012-09-16logind: redefine idleness to start at last activityZbigniew Jędrzejewski-Szmek
Before, after the timeout, a session would be timestamped as idle since 'last activity' + 'idle timeout'. Now, it is timestamped as idle since 'last activity'. Before, after all sessions were idle, the seat would be marked with as idle with the timestamp of the oldest idle session. Now it is marked with the timestamp of the youngest idle session. Both changes seem to me to be closer to natural understanding of idleness: the time since last activity counts.
2012-09-12login: reshuffle meaning of require_active parameterLennart Poettering
2012-09-12logind: Avoid unnecesary rewrite of user file when switching sessions of the ↵Colin Guthrie
same user.
2012-09-12logind: Ensure the user, seat and session files are updated when the session ↵Colin Guthrie
is closing.
2012-09-12logind: Add a two new variables to the user session tracking file.Colin Guthrie
This counts 'online sessions' in addition to 'active sessions' and 'sessions'. In this context, an 'online session' covers all session in the 'active' state in addition to the explicit 'online' state. This provides an easy machanism to determin all relevant sessions easily (i.e. those that are not 'closing') and adds new semantics to the sd-login.c APIs sd_uid_get_sessions() and sd_uid_get_seats() where the require_active argument can be supplied as a value 2 which only lists sessions which are 'online'. This functionality should allow client applications to avoid deadlocks where they only exit when all sessions are complete, such as a the problem where PulseAudio will not exit until all sessions are gone, but in itself prevents the session from exiting.
2012-09-12logind: Properly list the ACTIVE_SEATS in the user session tracking file.Colin Guthrie
Prevsiouly the first active seat for a user would never be listed and any subsequent seats would be concatenated on without any spaces.
2012-09-12logind: If all user sessions are in closing state, set the overall status to ↵Colin Guthrie
closing. PulseAudio for example will keep a client connection open provided at least one session exists. However, if all sessions are currently in the process of closing, we should flag that as the overall state appropriately to better reflect what is happening. Although this does better reflect the status for any given user, it does not actually solve the overall problem of PulseAudio still finding some sessions active and thus not exiting and therefore actually preventing the session from closing. Future commits will extend sd-login to cope with this situation.
2012-09-12pam: Add session class to the debug log.Colin Guthrie
2012-09-10inhibit: close all fds when invoking inhibited toolLennart Poettering
2012-09-10dbus: minor coding style fixesLennart Poettering
2012-09-10Make systemd-inhibit --list workMatthias Clasen
The code in the print_inhibitors function had an unintended unconditional early exit, causing it to never print any inhibitors.
2012-09-03journal: generate structured journal messages for a number of eventsLennart Poettering
2012-08-23login: check return of parse_pid and parse_uidLukas Nykryn
2012-08-08logind: use bus_method_call_with_reply() where posibleSimon Peeters
2012-08-08loginctl: use bus_method_call_with_reply() where posibleSimon Peeters
2012-07-29logind: add new loginctl lock-sessions commandLennart Poettering
2012-07-29logind: add LockSessions() call to lock all local sessions at onceLennart Poettering
2012-07-26login: lose policy a bit: allow user suspend unauthenticated when multiple ↵Lennart Poettering
sessions exist
2012-07-26log.h: new log_oom() -> int -ENOMEM, use itShawn Landden
also a number of minor fixups and bug fixes: spelling, oom errors that didn't print errors, not properly forwarding error codes, few more consistency issues, et cetera
2012-07-25use "Out of memory." consistantly (or with "\n")Shawn Landden
glibc/glib both use "out of memory" consistantly so maybe we should consider that instead of this. Eliminates one string out of a number of binaries. Also fixes extra newline in udev/scsi_id
2012-07-24uaccess: add ID_SECURITY_TOKEN device class for USB authentication keysKay Sievers
2012-07-22logind: fix operation precedence mix-upZbigniew Jędrzejewski-Szmek
Since + has higher precedence than ?:, and u+b is unlikely to be exactly zero, the timestamp would usually be set to IDLE_THRESHOLD_USEC. Fix it by returning either 'last activity', or 'last activity+IDLE_THRESHOLD_USEC'.
2012-07-19use #pragma once instead of foo*foo #define guardsShawn Landden
#pragma once has been "un-deprecated" in gcc since 3.3, and is widely supported in other compilers. I've been using and maintaining (rebasing) this patch for a while now, as it annoyed me to see #ifndef fooblahfoo, etc all over the place, almost arrogant about the annoyance of having to define all these names to perform a commen but neccicary functionality, when a completely superior alternative exists. I havn't sent it till now, cause its kindof a style change, and it is bad voodoo to mess with style that has been established by more established editors. So feel free to lambast me as a crazy bafoon. v2 - preserve externally used headers
2012-07-16unit: introduce %s specifier for the user shellLennart Poettering
2012-07-03journal: move Storage=auto stanza to right fileLennart Poettering
2012-07-02journald: add Storage= setting to control where the journal is storedLennart Poettering
2012-06-29logind: add PreparingForShutdown/PreparingForSleep propertiesLennart Poettering
2012-06-25man: document systemd-user-sessions.serviceLennart Poettering