Kay Sievers
f1c0ece144
shared: strbuf - add descriprion
2012-10-22 18:21:12 +02:00
Kay Sievers
3c62146280
shared: move sparse-endian.h from journal
2012-10-22 18:08:48 +02:00
Kay Sievers
4693cfb3bf
shared: strbuf - add description
2012-10-22 16:57:49 +02:00
Kay Sievers
955bd501c2
shared: strbuf - add string de-duplication facility
2012-10-22 16:27:00 +02:00
Kay Sievers
a9e12476ed
util: add (x)bsearch_r(), the missing counterpart of qsort_r()
2012-10-22 14:31:46 +02:00
Christian Hesse
20f59e42cd
shared/install: fix typo in comment
2012-10-19 17:34:38 +02:00
Michael Olbrich
f527b6b8e2
make sure __NR_name_to_handle_at is correctly defined
...
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 17:31:33 +02:00
Lennart Poettering
8c7c140fca
util: change endswith() to return a pointer to the suffix
2012-10-19 04:53:46 +02:00
Lennart Poettering
857a493d55
set: introduce strv_sort()
2012-10-19 04:53:45 +02:00
Lennart Poettering
9590dfe771
set: introduce set_get_strv()
2012-10-19 04:52:14 +02:00
Lennart Poettering
ed757c0cb0
util: unify line caching and column caching
2012-10-19 00:07:55 +02:00
Lennart Poettering
8481248b9f
util: unify usage of on_tty() in util.c
2012-10-19 00:07:55 +02:00
Lennart Poettering
28917d7dc7
util: simplify column caching logic
2012-10-19 00:07:55 +02:00
Lennart Poettering
f89a3b6f5b
journalctl: unify ellipsation handling between journalctl and systemctl
2012-10-18 23:35:44 +02:00
Lennart Poettering
cd4b13e0bf
journalctl: don't ellipsize unless on a tty
2012-10-18 23:35:44 +02:00
Lennart Poettering
240a5fe83e
journal: add ability to list unique fields to gatewayd
2012-10-18 22:34:42 +02:00
Lennart Poettering
3c1668da62
journal: add ability to list values a specified field can take in all 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-18 03:35:18 +02:00
Lennart Poettering
01539d6ef9
hostnamed: allow UTF8 chars in pretty hostname again
2012-10-17 21:25:42 +02:00
Lennart Poettering
6d0274f115
timedatectl: introduce new command line client for timedated
...
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-17 21:25:42 +02:00
Lennart Poettering
706911fba8
journal: don't export MESSAGE_ID() macro
...
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 16:26:41 +02:00
Lukas Nykryn
696c245a23
systemctl: append .service when unit does not have valid suffix
...
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 16:07:37 +02:00
Daniel J Walsh
080ffcb4a1
selinux: selabel_lookup_raw can return ENOENT and be a non failure mode.
2012-10-16 01:58:42 +02:00
Michael Olbrich
9388e99e20
build-sys: check for name_to_handle_at declaration instead of its definition
...
AC_CHECK_FUNCS may be successful, even though name_to_handle_at and
'struct file_handle' are not available.
2012-10-16 01:30:29 +02:00
Lennart Poettering
b1c806231b
util: properly handle -1 timespec/timeval
2012-10-16 01:04:32 +02:00
Lennart Poettering
cfbc22abd0
journalctl: implement --since= and --until for filtering by time
2012-10-11 16:43:37 +02:00
Lennart Poettering
48383c2511
journal: support epxorting the journal in a format suitable for text/event-stream
2012-10-11 02:37:10 +02:00
Lennart Poettering
96ede2601f
detect-virt: install with fs caps by default to allow unprivileged access
2012-10-09 22:25:32 +02:00
Martin Mikkelsen
011afa76fb
shared: fix broken string_is_safe
2012-10-08 14:35:46 +02:00
Lennart Poettering
5198dabcce
man: document behaviour of ListenStream= with only a port number in regards to IPv4/IPv6
2012-10-03 14:18:55 -04:00
Lennart Poettering
0b507b17a7
dbus: add some more safety checks before accepting data from bus clients
2012-10-03 13:29:20 -04:00
Colin Walters
0b6018f3d9
build-sys: fix !HAVE_SELINUX case
2012-10-03 16:00:33 +02:00
Lennart Poettering
c1165f822c
audit: turn the audit fd into a static variable
...
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 17:40:09 -04:00
Lennart Poettering
cad45ba11e
selinux: rework selinux access check logic
...
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 17:07:00 -04:00
Zbigniew Jędrzejewski-Szmek
5b585b5380
shared: fail mkdir_p if the target exists and is not a directory
...
This makes mkdir_p actually behave like mkdir -p.
2012-10-02 14:56:26 +02:00
Zbigniew Jędrzejewski-Szmek
27407a01c6
nspawn: use automatic cleanup and provide debug info
...
The documentation for --link-journal is also reworded.
2012-10-02 14:56:26 +02:00
Lennart Poettering
08ace05beb
logs-show: various cleanups
...
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-28 00:55:24 +02:00
Lennart Poettering
cecd32f648
macro: increase VA_FORMAT_ADVANCE type array and hit assert when it is reached
2012-09-24 23:42:29 +02:00
Lennart Poettering
963ddb917d
log: fix repeated invocation of vsnprintf()/vaprintf() in log_struct()
...
https://bugs.freedesktop.org/show_bug.cgi?id=55213
2012-09-24 23:26:46 +02:00
Lennart Poettering
9086e840ff
util: don't export parsed_columns
2012-09-24 14:43:07 +02:00
Dave Reisner
585314e84c
journalctl: reset cached column count on SIGWINCH
...
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-24 08:38:03 -04:00
Eelco Dolstra
848af05524
missing: Fix compilation error due to wrong __NR_name_to_handle_at definition
...
"__NR_name_to_handle" should read "__NR_name_to_handle_at". This
fixes a compilation error on systems with older kernel headers.
2012-09-21 22:51:48 +02:00
Lennart Poettering
4eeebf70aa
hwclock: add missing OOM check
2012-09-21 16:29:09 +02:00
Lukas Nykryn
e98055de98
shared: call va_end in all cases
2012-09-21 12:07:41 +02:00
Lennart Poettering
aa408e7799
util: fix overflow checks
2012-09-20 17:53:03 +02:00
Lennart Poettering
040f18ea8a
util: overflow hardening
2012-09-20 11:08:27 +02:00
Lennart Poettering
4b8772bf5f
util: make sure heap allocators fail when array allocations are out of bounds
...
https://bugzilla.redhat.com/show_bug.cgi?id=858777
2012-09-20 00:02:04 +02:00
Lennart Poettering
7d5e9c0f60
util: define union dirent_storage and make use of it everywhere
...
Make sure to allocate enough space for readdir_r().
https://bugzilla.redhat.com/show_bug.cgi?id=858754
2012-09-19 22:21:09 +02:00
Lennart Poettering
57f3067825
util: fix bad strstrip() return value in normalize_env_assignment()
...
https://bugzilla.redhat.com/show_bug.cgi?id=858780
2012-09-19 22:01:31 +02:00
Zbigniew Jędrzejewski-Szmek
d3b52baff9
systemctl: use automatic cleanup
...
Introduce a helper method to unref dbus messages and use it.
2012-09-19 08:25:36 +02:00
Zbigniew Jędrzejewski-Szmek
67445f4e22
core: move ManagerRunningAs to shared
...
Note: I did s/MANAGER/SYSTEMD/ everywhere, even though it makes the
patch quite verbose. Nevertheless, keeping MANAGER prefix in some
places, and SYSTEMD prefix in others would just lead to confusion down
the road. Better to rip off the band-aid now.
2012-09-18 19:53:34 +02:00