Age | Commit message (Collapse) | Author | |
---|---|---|---|
2012-10-16 | util: properly handle -1 timespec/timeval | Lennart Poettering | |
2012-10-11 | journalctl: implement --since= and --until for filtering by time | Lennart Poettering | |
2012-10-08 | shared: fix broken string_is_safe | Martin Mikkelsen | |
2012-10-03 | dbus: add some more safety checks before accepting data from bus clients | Lennart Poettering | |
2012-09-28 | logs-show: various cleanups | Lennart Poettering | |
Among other cleanups this introduces a threshold for the size of binary blobs we serialize as integer arrays in the JSON output. THis can be disabled via --all. | |||
2012-09-24 | util: don't export parsed_columns | Lennart Poettering | |
2012-09-24 | journalctl: reset cached column count on SIGWINCH | Dave Reisner | |
This requires a little bit of tip-toeing around to explicitly avoid touching the environment from a sig handler. Instead, simply create a function to reset the var to its "unset" state, allowing the next call to columns() to recalculate and cache the new value. | |||
2012-09-21 | shared: call va_end in all cases | Lukas Nykryn | |
2012-09-20 | util: fix overflow checks | Lennart Poettering | |
2012-09-20 | util: overflow hardening | Lennart Poettering | |
2012-09-19 | util: define union dirent_storage and make use of it everywhere | Lennart Poettering | |
Make sure to allocate enough space for readdir_r(). https://bugzilla.redhat.com/show_bug.cgi?id=858754 | |||
2012-09-19 | util: fix bad strstrip() return value in normalize_env_assignment() | Lennart Poettering | |
https://bugzilla.redhat.com/show_bug.cgi?id=858780 | |||
2012-09-18 | util: introduce get_process_gid() | Lennart Poettering | |
2012-09-17 | conf-parser: don't unescape parsed configuration strings by default | Lennart Poettering | |
In many cases this might have a negative effect since we drop escaping from strings where we better shouldn't have dropped it. If unescaping makes sense for some settings we can readd it later again, on a per-case basis. https://bugs.freedesktop.org/show_bug.cgi?id=54522 | |||
2012-09-17 | util: various cleanups for printing boot status | Lennart Poettering | |
2012-09-16 | nspawn: use automatic cleanup for umask | Zbigniew Jędrzejewski-Szmek | |
2012-09-14 | timedate: assorted improvements | Lennart Poettering | |
- Make writing/reading of /etc/timezone dependendent of HAVE_SYSV_COMPAT - Introduce symlink_atomic() after all, and use it - Use relative symlink for /etc/localtime | |||
2012-09-14 | util: more modernizations | Lennart Poettering | |
2012-09-14 | util: various additional modernizations | Lennart Poettering | |
2012-09-14 | util: modernize a few functions with automatic cleanup variables | Lennart Poettering | |
Just trying to get the feel for it. And it's pretty cool. | |||
2012-09-13 | macro: introduce _cleanup_free_ macro for automatic freeing of scoped vars ↵ | Lennart Poettering | |
and make use of it | |||
2012-09-11 | util: rm_rf_children_dangerous: delete all descendants dangerously | Tom 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-05 | nspawn: handle poweroff/reboot nicely in containers | Lennart Poettering | |
2012-08-22 | journal: move syslog specific calls out of util.c | Lennart Poettering | |
2012-08-22 | journald: split /dev/kmsg related stuff into its own .c file | Lennart Poettering | |
2012-08-21 | shared/util: add fstab support for partuuid/partlabel | Dave Reisner | |
udev has supported this since 172, so it should be a safe (and welcome) addition for users of GPT partitioned disks. | |||
2012-08-21 | shared/util: refactor fstab_node_to_udev_node | Dave Reisner | |
Since this is purely duplicated logic, separate it out into a small static function. | |||
2012-08-21 | journalctl: really include .journal~ files in listing | Lennart Poettering | |
2012-08-20 | journalctl: output FSS key as QR code on generating | Lennart Poettering | |
2012-08-14 | service: add options RestartPreventExitStatus and SuccessExitStatus | Lukas Nykryn | |
In some cases, like wrong configuration, restarting after error does not help, so administrator can specify statuses by RestartPreventExitStatus which will not cause restart of a service. Sometimes you have non-standart exit status, so this can be specified by SuccessfulExitStatus. | |||
2012-08-13 | namespace: rework namespace support | Lennart Poettering | |
- don't use pivot_root() anymore, just reuse root hierarchy - first create all mounts, then mark them read-only so that we get the right behaviour when people want writable mounts inside of read-only mounts - don't pass invalid combinations of MS_ constants to the kernel | |||
2012-08-09 | journald: properly unescape messages from /dev/kmsg | Lennart Poettering | |
2012-07-26 | cgtop: use full terminal width | Zbigniew Jędrzejewski-Szmek | |
2012-07-26 | log.h: new log_oom() -> int -ENOMEM, use it | Shawn 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-25 | use "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-16 | unit: introduce %s specifier for the user shell | Lennart Poettering | |
2012-07-16 | util: add getusername_malloc(), get_shell(), get_home_dir() | Lennart Poettering | |
2012-07-15 | aquire_terminal(): fix uninitialized variable | Kay Sievers | |
./src/shared/util.c:2457:45: warning: 'r' may be used uninitialized in this function [-Wmaybe-uninitialized] | |||
2012-07-13 | util: temporarily ignore SIGHUP while we are issuing TIOCSTTY | Lennart Poettering | |
2012-07-13 | util: rename join() to strjoin() | Lennart Poettering | |
This is to match strappend() and the other string related functions. | |||
2012-07-10 | switch-root: reopen /dev/console before we switch root | Lennart Poettering | |
2012-07-10 | util: rm_rf() refuse cleaning non-memory file systems, as extra paranoia | Lennart Poettering | |
2012-07-10 | util: add extra safety check to in_initrd() | Lennart Poettering | |
initrds can only be on tmpfs or ramfs, so check for that | |||
2012-07-09 | paranoia: refuse rm_rf("/") | Lennart Poettering | |
2012-06-26 | core: make systemd.confirm_spawn=1 actually work | Lennart Poettering | |
This adds a timeout if the TTY cannot be acquired and makes sure we always output the question to the console, never to the TTY of the respective service. | |||
2012-05-31 | util: don't require libcap when building libsystemd-shared | Kay Sievers | |
src/shared/util.c includes <sys/capability.h> but doesn't use anything defined there. Since <sys/capability.h> is part of libcap, not libc, don't require it. Allows systemd-without-udevd to require fewer external libraries. | |||
2012-05-31 | util: introduce a proper nsec_t and make use of it where appropriate | Lennart Poettering | |
2012-05-30 | logind: optionally handle power, sleep and lid switch events | Lennart Poettering | |
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. | |||
2012-05-22 | util: make sure to fstatat() at most once in rm_rf_children() | Lennart Poettering | |
2012-05-21 | util: rework in_initrd() logic | Lennart Poettering | |
Checking the device major/minor is not a good idea. Let's replace this with an explicit flag file, which we model after /etc/os-release and call /etc/initrd-release. |