summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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-12unit-name: rework unit_name_replace_instance function()Lennart Poettering
https://bugzilla.redhat.com/show_bug.cgi?id=855863
2012-09-11journal: don't set seal flag if we don't have gcrypt built-inLennart Poettering
2012-09-11journal: don't try to compress without XZMichael Olbrich
otherwise the header contains the HEADER_INCOMPATIBLE_COMPRESSED flag even though the data is not compressed and reading the journal fails.
2012-09-11util: rm_rf_children_dangerous: delete all descendants dangerouslyTom Gundersen
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>
2012-09-11update TODOLennart Poettering
2012-09-11build-sys: perform autodetection of quota-tools binariesDave Reisner
Use AC_PATH_PROG to try and locate the quotaon and quotacheck binaries, falling back on hardcoded defaults when they can't be found.
2012-09-11condition: add ConditionFileNotEmpty=Lennart Poettering
https://bugs.freedesktop.org/show_bug.cgi?id=54448
2012-09-11when determining unit file list, include invalid unit names in an "invalid" ↵Lennart Poettering
state
2012-09-11update TODOLennart Poettering
2012-09-10update TODOLennart Poettering
2012-09-10man: document that assignemnts of devices to seats are persistentLennart Poettering
2012-09-10journald: don't do debug logging by defaultLennart Poettering
2012-09-10journald: don't complain if fss key does not existLennart Poettering
2012-09-10selinux: close stdin/stdout/stderr before loading selinux policyLennart Poettering
Let's make sure libselinux doesn't spew to stderr
2012-09-10journald: detect invalid header pointers correctlyLennart Poettering
2012-09-10unit: don't allow units to be gc'ed that still are referenced via UnitRefLennart Poettering
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-10build-sys: add libsystemd-id128-internal.la as dep to libsystemd-core.laLennart Poettering
condition.c makes use of sd_id128_get_machine() after all. Spotted by Khem Raj.
2012-09-10path-util: fall back to stat() if kernel does not support name_to_handle_at()Mantas Mikulėnas
Fixes instant hang on kernels that do not have CONFIG_FHANDLE enabled.
2012-09-10path-util: do not fail in path_is_mountpoint() if path doesn't existMantas Mikulėnas
This was accidentally lost in commit 1640a0b6b05b.
2012-09-07journald: make splitting up of journal files per-user configurableLennart Poettering
2012-09-07journal: add call to determine current journal file disk usageLennart Poettering
2012-09-07main: fix syntax of net_prio cgroup controllerLennart Poettering
2012-09-06journald: avoid logging to kmsg in the normal pathsLennart Poettering
2012-09-05localed: system-setup-keyboard is no more on fedoraLennart Poettering
2012-09-05man: document that ExecStart= doesn't understand shell command linesLennart Poettering
2012-09-05tmpfiles: don't attempt creation of device nodes when we run in a containerLennart Poettering
2012-09-05systemctl: properly build flags for show_journal_by_unit()Lennart Poettering
2012-09-05journalctl: show "Reboot" markers in output only when showing local-only entriesLennart Poettering
2012-09-05journalctl: replace --local by --merge, i.e. don't interleave remote ↵Lennart Poettering
journals by default
2012-09-05nspawn: handle poweroff/reboot nicely in containersLennart Poettering
2012-09-05shutdown: in containers, invoke reboot(2), too. Then fallback to exit() if ↵Lennart Poettering
CAP_SYS_BOOT is missing The kernel's PID namespaces support reboot(2) just fine, so let's make use of it if possible.
2012-09-05shutdown: remove explicit sync() invocationsLennart Poettering
The kernel implicitly does sync() anyway, hence there is no need to do that in userspace explicitly. This makes the "-n" switch to halt(8) a noop.
2012-09-05nspawn: don't provide /dev/rtc0 in the containerLennart Poettering
Since RTCs are hardware devices and are very much shared resources we should avoid to provide them in each container.
2012-09-05journalctl: rework JSON output modeLennart Poettering
This splits the JSON output mode into different modes: json and json-pretty. The former printing one entry per line, the latter showing JSON objects nicely indented and in multiple lines to make it easier to read for humans.
2012-09-05nspawn: generate a new randomized boot ID for each containerLennart Poettering
2012-09-05nspawn: if a file system comes pre-mounted, still do the read-only remountsLennart Poettering
2012-09-04path: fix invalid variable access in path_is_mount_point()Lennart Poettering
2012-09-04path-util: in path_is_mount_point() fall back to the classic stat() test if ↵Lennart Poettering
fs does not support name_to_handle_at()
2012-09-04nspawn: skip mounts if already mountedLennart Poettering
2012-09-04nspawn: mount a clean instance of sysfsLennart Poettering
2012-09-04missing: define name_to_handle_at on our own if it is missingLennart Poettering