- 12 Sep, 2012 15 commits
-
-
Lennart Poettering authored
-
Kay Sievers authored
-
Kay Sievers authored
-
Lennart Poettering authored
-
Lennart Poettering authored
-
Dave Reisner authored
Break out the write logic into a separate function and simply use it as a callback to glob_item. This allows users to consolidate writes to sysfs with multiple similar pathnames, e.g. w /sys/class/block/sd[a-z]/queue/read_ahead_kb - - - - 1024
-
Lennart Poettering authored
-
Lennart Poettering authored
-
Colin Guthrie authored
-
Colin Guthrie authored
-
Colin Guthrie authored
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.
-
Colin Guthrie authored
Prevsiouly the first active seat for a user would never be listed and any subsequent seats would be concatenated on without any spaces.
-
Colin Guthrie authored
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.
-
Colin Guthrie authored
-
-
- 11 Sep, 2012 3 commits
-
-
Lennart Poettering authored
-
Michael Olbrich authored
otherwise the header contains the HEADER_INCOMPATIBLE_COMPRESSED flag even though the data is not compressed and reading the journal fails.
-
Tom Gundersen authored
Call rm_rf_children_dangerous() recursively rather than falling back to rm_rf_children(). This fixes a bug in systemd-tmpfiles. The problem can easily be reproduced by: # mount /dev/sda1 /mnt # mkdir /mnt/test # echo "D /mnt" > /root/test.conf # systemd-tmpfiles --remove /root/test.conf Attempted to remove disk file system, and we can't allow that. rm_rf(/root/test): Operation not permitted Reported-by:
Lukas Jirkovsky <l.jirkovsky@gmail.com>
-
- 10 Sep, 2012 18 commits
-
-
Lennart Poettering authored
-
Dave Reisner authored
Use AC_PATH_PROG to try and locate the quotaon and quotacheck binaries, falling back on hardcoded defaults when they can't be found.
-
-
Lennart Poettering authored
-
Lennart Poettering authored
-
Lennart Poettering authored
-
Lennart Poettering authored
-
Lennart Poettering authored
-
Lennart Poettering authored
-
Lennart Poettering authored
Let's make sure libselinux doesn't spew to stderr
-
Lennart Poettering authored
-
Lennart Poettering authored
-
Lennart Poettering authored
-
Lennart Poettering authored
-
Matthias Clasen authored
The code in the print_inhibitors function had an unintended unconditional early exit, causing it to never print any inhibitors.
-
Lennart Poettering authored
condition.c makes use of sd_id128_get_machine() after all. Spotted by Khem Raj.
-
Mantas Mikulėnas authored
Fixes instant hang on kernels that do not have CONFIG_FHANDLE enabled.
-
Mantas Mikulėnas authored
This was accidentally lost in commit 1640a0b6.
-
- 07 Sep, 2012 3 commits
-
-
Lennart Poettering authored
-
Lennart Poettering authored
-
Lennart Poettering authored
-
- 06 Sep, 2012 1 commit
-
-
Lennart Poettering authored
-