summaryrefslogtreecommitdiff
path: root/src/login
Commit message (Collapse)AuthorAge
...
* inhibit: print --list if no argument is givenKay Sievers2013-03-05
|
* logind: when registering a new session always use previous session info from ↵Lennart Poettering2013-03-05
| | | | | | | | | | | | | | | | cgroup path rather than audit Previously for cases like "su" or "sudo" where a session is attempted to be created from within an existing one we used the audit session ID to detect this and in such a case we simple returned the session data of the original session a second time. With this change we will now use the cgroup path of the calling path to determine the old session, i.e. we only rely on our own session identification scheme, instead of audits. We will continue to keep the audit session ID and ours in sync however, to avoid unnecessary confusion.
* inhibit: make the output more readableMantas Mikulėnas2013-03-01
| | | | | | | | | | | | | The columnar output can become pretty horrible. When GNOME inhibits power/suspend/hibernate keys, the "WHAT" column's text extends to "WHO" and even "WHY". At the same time, all texts in "WHY" are of the form GNOME handlin...sses Receiving sle...ions GNOME needs t...reen This patch splits each inhibit entry into four lines, allowing the full text to fit in a normal-width terminal.
* systemctl: make shutdown operations use irreversible jobsMichal Schmidt2013-02-22
| | | | | | | | | | | | Occasionally people report problem with reboot/poweroff operations hanging in the middle. One known cause is when a new transaction to start a unit is enqueued while the shutdown is going on. The start of the unit conflicts with the shutdown jobs, so they get cancelled. The failure case can be quite unpleasant, becase getty and sshd may already be stopped. Fix it by using irreversible jobs for shutdown (reboot/poweroff/...) actions. This applies to commands like "reboot", "telinit 6", "systemctl reboot". Should someone desire to use reversible jobs, they can say "systemctl start reboot.target".`
* update TODOThomas Hindoe Paaboel Andersen2013-02-14
|
* honor SELinux labels, when creating and writing config filesHarald Hoyer2013-02-14
| | | | | | | Also split out some fileio functions to fileio.c and provide a SELinux aware pendant in fileio-label.c see https://bugzilla.redhat.com/show_bug.cgi?id=881577
* Revert "log_error() if inotify_add_watch() fails"Lennart Poettering2013-02-13
| | | | | | This reverts commit 2826d14091e43ed3397d862dee79d09d0115c84e. We never should generate log messages from a library.
* log_error() if inotify_add_watch() failsHarald Hoyer2013-02-13
| | | | | | | [zj: Reworded message s/to watch/to add watch on/ to make it clear that it was the watch init action that failed, and not the "process of watching". I think this way it'll be clearer to people who don't know what inotify does.]
* use strneq instead of strncmpThomas Hindoe Paaboel Andersen2013-02-13
|
* logind: Allow active sessions to always shutdown by defaultAdel Gadllah2013-02-11
| | | | | | | | | | | Currently local user are being asked for an admin password when another user is logged into the system. This does not make sense as the user has the power to shut down the system anyway regardless if he/she knows the password or not (by pulling the plug, battery or whatever). So only require the admin authentification for remote sessions. https://bugzilla.gnome.org/show_bug.cgi?id=693385
* logind: rename "seat-master" tag to "master-of-seat"Lennart Poettering2013-02-09
| | | | | | | | | | | We currently enforce that seats are to be named in the form of "seatXXX", i.e. need to begin with the 4 characters "seat". Thus, "seat-master" would qualify as a seat name. As seat names are frequently used as tags on devices, the "seat-master" tag might hence confuse logind if the user decides to name a seat "seat-master". Hence, avoid any ambuigity: let's rename the "seat-master" tag to "master-of-seat".
* logind: add MESSAGE_IDs to interesting eventsZbigniew Jędrzejewski-Szmek2013-01-27
|
* logind: rework delay inhibition logicLennart Poettering2013-01-25
| | | | | | | | | | | | | | | | - Don't allow any locks to be taken while we are in the process of executing the specific operation, so that apps are not surprised if a suspend/shutdown happens while they rely on their inhibitor. - Get rid of the Resumed signal, it was a bad idea, and redundant due to PrepareForSleep(false), see below. - Always send out PrepareFor{Shutdown,Sleep} signals, instead of only if a delay lock is taken. - Move PrepareForSleep(false) after we come back from the suspend, so that apps can use this as "Resumed" notification. This also has the benefit that apps know when to take a new lock.
* loginctl: don't show [UACCESS] info in device treeLennart Poettering2013-01-25
| | | | | | | As the tree doesn't really necessarily show all device node devices and only those are marked for uaccess it's kinda pointless showing this at all, since it would give a pretty incomplete impression of the uaccess information.
* loginctl: show seat master and uaccess devices in seat-status outputLennart Poettering2013-01-24
|
* logind: add UnlockSessions() clal to complement LockSessions()Lennart Poettering2013-01-24
|
* logind: send Resumed() signal after we come back from ↵Lennart Poettering2013-01-24
| | | | | | | | suspend/hibernate/hybrid-sleep This allows clients to get asynchronous notifications for user-requested suspend/hibernate cycles. Kernel-triggered automatic suspending is not covered.
* logind: only allow one shutdown/sleep action to be queued at the same timeLennart Poettering2013-01-24
| | | | | This should make sure that closing the lid while shutting down won't suspend the machine but will simply cause the shutdown to complete.
* systemctl,loginctl,cgls: do not ellipsize cgroup members when --full is ↵Lukas Nykryn2013-01-16
| | | | | | | | | | | | | | | | | | | | specified New file output.h with output flags and modes. --full parameter also for cgls and loginctl. Include 'all' parameter in flags (show_cgroup_by_path, show_cgroup, show_cgroup_and_extra, show_cgroup_and_extra_by_spec). get_process_cmdline with max_length == 0 will not ellipsize output. Replace LINE_MAX with 0 in some calls of get_process_cmdline. [zj: Default to --full when under pager for clgs. Drop '-f' since it wasn't documented and didn't actually work. Reindent a bit. ]
* logind: remove unused variableMichal Sekletar2013-01-15
|
* login: introduce sd_session_get_tty()Lennart Poettering2013-01-15
|
* logind: ignore non-tty/non-x11 session when checking if there are other ↵Lennart Poettering2013-01-14
| | | | | | sessions before shutting down https://bugzilla.redhat.com/show_bug.cgi?id=890827
* logind: Capability of making seats without framebuffer devicesOleg Samarin2013-01-07
| | | | | file logind.c: The seat is now activated by any device with udev tag "seat-master" file 71-seat.rules.in: All framebuffer devices have this tag
* build-sys: drop all distribution specfic checksLennart Poettering2013-01-04
| | | | Yay, we now have a completely generic systemd. No distribution specific checks anymore!
* polkit: add "imply" rules to a number of polkit actionsLennart Poettering2012-12-31
|
* pam_systemd: new option for the session classMatthew Monaco2012-12-24
|
* logind: don't allow suspending/hibernating if the kernel doesn't support itLennart Poettering2012-12-24
|
* logind: add support for automatic suspend/hibernate/shutdown on idleLennart Poettering2012-12-24
|
* pam: properly handle SSH logins lacking the PAM tty fieldLennart Poettering2012-12-24
|
* logind: allow HybridSleep methods in default DBus contextMantas Mikulėnas2012-12-18
|
* time-util: also rename FORMAT_TIMESTAMP_PRETTY → _MAXLennart Poettering2012-11-23
|
* util: rename format_timestamp_pretty() to format_timestamp_relative() ↵Lennart Poettering2012-11-23
| | | | because that describes much better what it does
* dbus-common: Add helper method to handle no-reply messagesColin Walters2012-11-20
| | | | | | | | | | | | | | | | | | | | | | | | | [Tested in latest gnome-ostree; if accepted, I'll look at a followup patch which fixes the other dbus_connection_send(reply, ...) calls besides logind] DBus messages can have a flag NO_REPLY associated that means "I don't need a reply". This is for efficiency reasons - for one-off requests that can't return an error, etc. However, it's up to users to manually check dbus_message_get_no_reply() from a message. libdbus will happily send out a reply if you don't. Unfortunately, doing so is not just less efficient - it also triggers a security error, for complex reasons. This is something that will eventually be fixed in dbus, but it's also correct to handle it in client applications. This new helper API is slightly nicer in that you don't have to pass NULL to say you don't want a reply serial for your reply. This patch also tweaks logind to use the API - there are more areas of the code that need this treatment too.
* util: nicer tree drawingsMichal Schmidt2012-11-12
| | | | Draw trees more similar to pstree/findmnt/lsblk/...
* enable localization for common *ctl commandsDave Reisner2012-11-12
|
* util : fallback to plain ASCII drawing if locale is not UTF-8Michal Schmidt2012-11-02
| | | | | | | When printing cgroup and sysfs hierarchies, avoid using UTF-8 box drawing characters if the locale is not UTF-8. https://bugzilla.redhat.com/show_bug.cgi?id=871153
* logind: it's OK if a process on an pty requests a session for seat0Lennart Poettering2012-10-30
| | | | | After all, if a sudo/su inside an X terminal should get added to the same session as the X session itself.
* logind: unify all session lock loopLennart Poettering2012-10-30
|
* login: trivial grammar fixZbigniew Jędrzejewski-Szmek2012-10-28
|
* logind: add 'lock' as possible choice for handling hw keysLennart Poettering2012-10-28
|
* logind: support for hybrid sleep (i.e. suspend+hibernate at the same time)Lennart Poettering2012-10-28
|
* util: unify usage of on_tty() in util.cLennart Poettering2012-10-19
|
* loginctl: show pager also for status commandLennart Poettering2012-10-17
|
* timedatectl: introduce new command line client for timedatedLennart Poettering2012-10-17
| | | | | | Much like logind has a client in loginctl, and journald in journalctl introduce timedatectl, to change the system time (incl. RTC), timezones and related settings.
* logind: only release logind session from the PAM module if the same module ↵Lennart Poettering2012-10-16
| | | | instance actually created it
* log: introduce a macro to format message idZbigniew Jędrzejewski-Szmek2012-10-13
| | | | | | | 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.
* logind: expose missing signals in Session bus objectsLennart Poettering2012-10-09
|
* man: handle-sleep-key is invalid, replace it with handle-suspend-key and ↵Сковорода Никита Андреевич2012-10-03
| | | | handle-hibernate-key in systemd-inhibit help and man.
* pam: check environ[] for XDG_SEAT as fallbackLennart Poettering2012-10-01
| | | | | This is useful for systems such as kmscon which want to invoke classic /sbin/login but use it on multiple seats.
* multi-seat-x: drop a lot of unnecessary codeLennart Poettering2012-09-21
|