summaryrefslogtreecommitdiff
path: root/src/login/logind-inhibit.c
Commit message (Collapse)AuthorAge
* Use initalization instead of explicit zeroingZbigniew Jędrzejewski-Szmek2013-04-05
| | | | | | | | | | | | | | | | | | | | | | | Before, we would initialize many fields twice: first by filling the structure with zeros, and then a second time with the real values. We can let the compiler do the job for us, avoiding one copy. A downside of this patch is that text gets slightly bigger. This is because all zero() calls are effectively inlined: $ size build/.libs/systemd text data bss dec hex filename before 897737 107300 2560 1007597 f5fed build/.libs/systemd after 897873 107300 2560 1007733 f6075 build/.libs/systemd … actually less than 1‰. A few asserts that the parameter is not null had to be removed. I don't think this changes much, because first, it is quite unlikely for the assert to fail, and second, an immediate SEGV is almost as good as an assert.
* logind: consider key inhibitors that are taken by non-session processes as ↵Lennart Poettering2013-04-05
| | | | | | | global This should allow system services to take over key handling for all sessions, globally.
* 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
* use strneq instead of strncmpThomas Hindoe Paaboel Andersen2013-02-13
|
* logind: split up HandleSleepKey= into HandleSuspendKey= and HandleHibernateKey=Lennart Poettering2012-09-21
| | | | | The kernel and X11 distuingish these two, and Thinkpad keys have both, hence we really should distinguish them too.
* logind: allow users to override their own suspend/sleep inhibitorsLennart Poettering2012-09-21
|
* logind: properly parse handle-lid-switch inhibitorLennart Poettering2012-09-19
|
* logind: rework power key/suspend key/lid switch handlingLennart Poettering2012-09-19
| | | | | | | | 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
* login: check return of parse_pid and parse_uidLukas Nykryn2012-08-23
|
* mkdir: append _label to all mkdir() calls that explicitly set the selinux ↵Kay Sievers2012-05-31
| | | | context
* logind: optionally handle power, sleep and lid switch eventsLennart Poettering2012-05-30
| | | | | | | | | | | This takes handling of chassis power and sleep keys as well as the lid switch over from acpid. This logic is enabled by default for power and sleep keys, but not for the lid switch. If a graphical session is in the foreground no action is taken under the assumption that the graphical session does this.
* logind: implement suspend/hibernate calls with inhibition logicLennart Poettering2012-05-08
|
* logind: use "sleep" as generic term for "suspend", "hibernate", and later on ↵Lennart Poettering2012-05-08
| | | | "hybrid suspend"
* util: split-out path-util.[ch]Kay Sievers2012-05-08
|
* logind: implement delay inhibitor locks in addition to block inhibitor locksLennart Poettering2012-05-05
| | | | | This is useful to allow applications to synchronously save data before the system is suspended or shut down.
* logind: hook up inhibit logic with idle hint logicLennart Poettering2012-04-16
|
* logind: add shutdown/suspend/idle inhibition frameworkLennart Poettering2012-04-16