summaryrefslogtreecommitdiff
path: root/src/shared
AgeCommit message (Collapse)Author
2012-09-14timedate: assorted improvementsLennart 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-14systemctl: show unit name when a job failsLennart Poettering
https://bugzilla.redhat.com/show_bug.cgi?id=845028 https://bugzilla.redhat.com/show_bug.cgi?id=846483
2012-09-14util: more modernizationsLennart Poettering
2012-09-14util: various additional modernizationsLennart Poettering
2012-09-14util: modernize a few functions with automatic cleanup variablesLennart Poettering
Just trying to get the feel for it. And it's pretty cool.
2012-09-13macro: introduce _cleanup_free_ macro for automatic freeing of scoped vars ↵Lennart Poettering
and make use of it
2012-09-12unit-name: rework unit_name_replace_instance function()Lennart Poettering
https://bugzilla.redhat.com/show_bug.cgi?id=855863
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-11when determining unit file list, include invalid unit names in an "invalid" ↵Lennart Poettering
state
2012-09-10dbus: minor coding style fixesLennart Poettering
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-05nspawn: handle poweroff/reboot nicely in containersLennart Poettering
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-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-04missing: define name_to_handle_at on our own if it is missingLennart Poettering
2012-09-03shared: logs-show: fflush after each output typeBrandon Philips
journalctl -f redirected to a pipe or file wasn't working for some output formats but was working for json. It turns out only json was doing an fflush. Make all output formats flush.
2012-09-03journalctl: include logs from PID 1 about services in systemctl statusLennart Poettering
2012-09-03util: make path_is_mount_point() recognize bind mounts, tooLennart Poettering
2012-09-03journal: suppress structured messages if they'd go to the consoleLennart Poettering
2012-09-03journal: generate structured journal messages for a number of eventsLennart Poettering
2012-09-03shared: in code that might get called from suid programs use ↵Lennart Poettering
__secure_getenv() rather than getenv() It's better to be safe than sorry.
2012-08-23hashmap: hashmap_contains does not need hashmap_entryLukas Nykryn
2012-08-22journal: move syslog specific calls out of util.cLennart Poettering
2012-08-22journald: split /dev/kmsg related stuff into its own .c fileLennart Poettering
2012-08-21shared/util: add fstab support for partuuid/partlabelDave Reisner
udev has supported this since 172, so it should be a safe (and welcome) addition for users of GPT partitioned disks.
2012-08-21shared/util: refactor fstab_node_to_udev_nodeDave Reisner
Since this is purely duplicated logic, separate it out into a small static function.
2012-08-21dev-setup: make NULL as parameter for dev_setup() equivalent to ""Lennart Poettering
2012-08-21dev-setup: allow a path prefix for use in chrootsDave Reisner
With this adjustment, we can reuse this code elsewhere, such as in nspawn.
2012-08-21journalctl: really include .journal~ files in listingLennart Poettering
2012-08-20journalctl: output FSS key as QR code on generatingLennart Poettering
2012-08-16conf-parser: make parsing exit status lists non-fatalLennart Poettering
2012-08-14conf-parser: simplify a few things by using set_ensure_allocated() rather ↵Lennart Poettering
than set_new()
2012-08-14service: add options RestartPreventExitStatus and SuccessExitStatusLukas 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-13namespace: rework namespace supportLennart 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-10systemctl: fix issue with systemctl daemon-reexecSimon Peeters
2012-08-10shared/utf8: mark char* as constDave Reisner
Avoids compiler warning: src/shared/utf8.c: In function 'ascii_filter': src/shared/utf8.c:278:16: warning: assignment discards 'const' qualifier from pointer target type [enabled by default]
2012-08-09journald: properly unescape messages from /dev/kmsgLennart Poettering
2012-08-08fix a couple of issues found with llvm-analyzeLennart Poettering
2012-08-08move bus_method_call_with_reply() to dbus-commonSimon Peeters
2012-08-03logs-show: fix off-by-one errorShawn Landen
Ellipsize lines that are one character too long.
2012-07-28systemctl: append .service to unit names lacking suffixLennart Poettering
https://bugs.freedesktop.org/show_bug.cgi?id=39386
2012-07-26cgtop: use full terminal widthZbigniew Jędrzejewski-Szmek
2012-07-26journalctl: hightlight log lines by priorityLennart Poettering
warn/notice = bright white < error = red
2012-07-26logs-show: fix OOM pathLennart Poettering
2012-07-26log: out-of-line __log_oom()Michal Schmidt
The callers' code gets smaller.
2012-07-26log: log_oom() must be a macroMichal Schmidt
2012-07-26log.h: new log_oom() -> int -ENOMEM, use itShawn 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-26unit-name: style fix in unit_name_is_template()Michal Schmidt
to make it look like the newly added unit_name_is_instance()