Age | Commit message (Collapse) | Author | |
---|---|---|---|
2012-10-30 | shared, libsystemd-daemon: check for empty strings in strto*l conversions | Michal Schmidt | |
strtol() and friends may set EINVAL if no conversion was performed, but they are not required to do so. In practice they don't. We need to check for it. https://bugzilla.redhat.com/show_bug.cgi?id=870577 | |||
2012-10-29 | util: improve overflow checks | Michal Schmidt | |
commit 49371bb fixed the observed division by zero, but missed another occurrence of the same bug. It was also not the optimal fix. We can simply make the divisor a constant by swapping it with the compared value. | |||
2012-10-29 | util: avoid divide by zero FPE | Dave Reisner | |
In early userspace, if kernel initialization happens extremely quickly, a call to systemd-timestamp can potentially result in division by zero. Ensure that the check in timespec_load, which only makes sense if tv_sec is greater than zero, is guarded by this condition. | |||
2012-10-28 | util: fix possible integer overflows | Michal Sekletar | |
2012-10-28 | logind: support for hybrid sleep (i.e. suspend+hibernate at the same time) | Lennart Poettering | |
2012-10-27 | hwclock: do not seal the kernel's time-warp call from inside the initrd | Kay Sievers | |
2012-10-27 | util: return the remaining string in startswith() | Lennart Poettering | |
2012-10-26 | coredumpctl: show timestamps in list | Lennart Poettering | |
2012-10-26 | journal: provide an API that allows client to figure out whether they need ↵ | Lennart Poettering | |
to recheck the journal manually for changes in regular intervals Network file systems generally do not offer inotify() that would work across the network. We hence cannot rely on inotify() exclusiely in those case. Provide an API to determine these cases, and suggest doing manual regular rechecks. Note that this is not complete yet, as we need to rescan journal dirs on network file systems explicitly to find new/removed files | |||
2012-10-26 | journal: introduce entry array chain cache | Lennart Poettering | |
When traversing entry array chains for a bisection or for retrieving an item by index we previously always started at the beginning of the chain. Since we tend to look at the same chains repeatedly, let's cache where we have been the last time, and maybe we can skip ahead with this the next time. This turns most bisections and index lookups from O(log(n)*log(n)) into O(log(n)). More importantly however, we seek around on disk much less, which is good to reduce buffer cache and seek times on rotational disks. | |||
2012-10-25 | udev: hwdb - remove run_once | Kay Sievers | |
2012-10-25 | journal: properly serialize fields with multiple values into JSON | Lennart Poettering | |
This now matches the JSON serialization spec from: http://www.freedesktop.org/wiki/Software/systemd/json | |||
2012-10-23 | cgls: correctly ellipsize command lines for PIDs >= 1000000 | Mantas Mikulėnas | |
2012-10-22 | shared: strbuf - add descriprion | Kay Sievers | |
2012-10-22 | shared: move sparse-endian.h from journal | Kay Sievers | |
2012-10-22 | shared: strbuf - add description | Kay Sievers | |
2012-10-22 | shared: strbuf - add string de-duplication facility | Kay Sievers | |
2012-10-22 | util: add (x)bsearch_r(), the missing counterpart of qsort_r() | Kay Sievers | |
2012-10-19 | shared/install: fix typo in comment | Christian Hesse | |
2012-10-19 | make sure __NR_name_to_handle_at is correctly defined | Michael Olbrich | |
341 is only valid for x86, so don't use it for other architectures. Add the correct numbers for ARM and PowerPC while at it. | |||
2012-10-19 | util: change endswith() to return a pointer to the suffix | Lennart Poettering | |
2012-10-19 | set: introduce strv_sort() | Lennart Poettering | |
2012-10-19 | set: introduce set_get_strv() | Lennart Poettering | |
2012-10-19 | util: unify line caching and column caching | Lennart Poettering | |
2012-10-19 | util: unify usage of on_tty() in util.c | Lennart Poettering | |
2012-10-19 | util: simplify column caching logic | Lennart Poettering | |
2012-10-18 | journalctl: unify ellipsation handling between journalctl and systemctl | Lennart Poettering | |
2012-10-18 | journalctl: don't ellipsize unless on a tty | Lennart Poettering | |
2012-10-18 | journal: add ability to list unique fields to gatewayd | Lennart Poettering | |
2012-10-18 | journal: add ability to list values a specified field can take in all ↵ | Lennart Poettering | |
entries of the journal The new 'unique' API allows listing all unique field values that a field specified by a field name can take in all entries of the journal. This allows answering queries such as "What units logged to the journal?", "What hosts have logged into the journal?", "Which boot IDs have logged into the journal?". Ultimately this allows implementation of tools similar to lastlog based on journal data. Note that listing these field values will not work for journal files created with older journald, as the field values are not indexed in older files. | |||
2012-10-17 | hostnamed: allow UTF8 chars in pretty hostname again | Lennart Poettering | |
2012-10-17 | timedatectl: introduce new command line client for timedated | Lennart Poettering | |
Much like logind has a client in loginctl, and journald in journalctl introduce timedatectl, to change the system time (incl. RTC), timezones and related settings. | |||
2012-10-16 | journal: don't export MESSAGE_ID() macro | Lennart Poettering | |
If it is exported it would need to be prefixed, but since we need it exclusively internally so far, simply move it to an internal header. | |||
2012-10-16 | systemctl: append .service when unit does not have valid suffix | Lukas Nykryn | |
systemctl status a and systemctl status a.service lead to same output but systemctl status a.b and systemctl status a.b.service do not. | |||
2012-10-16 | selinux: selabel_lookup_raw can return ENOENT and be a non failure mode. | Daniel J Walsh | |
2012-10-16 | build-sys: check for name_to_handle_at declaration instead of its definition | Michael Olbrich | |
AC_CHECK_FUNCS may be successful, even though name_to_handle_at and 'struct file_handle' are not available. | |||
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-11 | journal: support epxorting the journal in a format suitable for ↵ | Lennart Poettering | |
text/event-stream | |||
2012-10-09 | detect-virt: install with fs caps by default to allow unprivileged access | Lennart Poettering | |
2012-10-08 | shared: fix broken string_is_safe | Martin Mikkelsen | |
2012-10-03 | man: document behaviour of ListenStream= with only a port number in regards ↵ | Lennart Poettering | |
to IPv4/IPv6 | |||
2012-10-03 | dbus: add some more safety checks before accepting data from bus clients | Lennart Poettering | |
2012-10-03 | build-sys: fix !HAVE_SELINUX case | Colin Walters | |
2012-10-02 | audit: turn the audit fd into a static variable | Lennart Poettering | |
As audit is pretty much just a special kind of logging we should treat it similar, and manage the audit fd in a static variable. This simplifies the audit fd sharing with the SELinux access checking code quite a bit. | |||
2012-10-02 | selinux: rework selinux access check logic | Lennart Poettering | |
a) Instead of parsing the bus messages inside of selinux-access.c simply pass everything pre-parsed in the functions b) implement the access checking with a macro that resolves to nothing on non-selinux builds c) split out the selinux checks into their own sources selinux-util.[ch] d) this unifies the job creation code behind the D-Bus calls Manager.StartUnit() and Unit.Start(). | |||
2012-10-02 | shared: fail mkdir_p if the target exists and is not a directory | Zbigniew Jędrzejewski-Szmek | |
This makes mkdir_p actually behave like mkdir -p. | |||
2012-10-02 | nspawn: use automatic cleanup and provide debug info | Zbigniew Jędrzejewski-Szmek | |
The documentation for --link-journal is also reworded. | |||
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 | macro: increase VA_FORMAT_ADVANCE type array and hit assert when it is reached | Lennart Poettering | |