Commit Graph

11099 Commits

Author SHA1 Message Date
Kay Sievers
4e6db59202 bus: rename KDBUS_CMD_FNAME_POLICY_NONE -> KDBUS_CMD_FNAME_POLICY_OPEN 2013-04-12 21:04:49 +02:00
Kay Sievers
e74d860ccb bus: test - re-enable check for returned error 2013-04-12 20:32:19 +02:00
Kay Sievers
8e7382422c bus: align the buffer we pass to the kernel 2013-04-12 20:08:28 +02:00
Kay Sievers
1b9abbf0d8 bus: create kdbus bus without an active policy 2013-04-12 16:45:37 +02:00
Lennart Poettering
f08838da22 bus: implement basic name registration with kdbus 2013-04-12 03:08:50 +02:00
Tom Gundersen
8c11aac1d7 tmpfiles: create static device nodes before udev is started
Since v183, the contents of /usr/lib/udev/devices is no longer copied to /dev
on boot, rather systemd-tmpfiles should be used instead. However, as
systemd-tmpfiles --create is only ran long after udevd has been started, it is
no longer possible to use udev rules to assign permissions to the static nodes.

This calls systemd-tmpfiles --create early, before udev is started, and
restricts the call to /dev, which is known to be mounted already.

In the future, this could also take over the creation of static device nodes
from systemd-udevd.
2013-04-12 02:43:01 +02:00
Lennart Poettering
4e3431bc39 bus: be nice to people who don't have kdbus in their kernels 2013-04-12 02:24:28 +02:00
Lennart Poettering
beca33eef4 bus: make sure things still compile fine without valgrind's headers installed 2013-04-12 02:21:57 +02:00
Lennart Poettering
7211f918ba bus: make the kdbus code valgrind clean 2013-04-12 02:19:26 +02:00
Lennart Poettering
acb5a3cb20 bus: parse and expose kdbus message timestamps 2013-04-12 01:57:53 +02:00
Lennart Poettering
8323bc1f90 bus: also parse PID starttime out of kdbus message 2013-04-12 01:49:52 +02:00
Lennart Poettering
f9be01f3b4 bus: parse uid/gid/pid/tid meta data from kdbus messages 2013-04-12 01:45:18 +02:00
Lennart Poettering
e9a967f9a0 bus: make kdbus work so that we can exchange real messages
We have ignition, we have tremendous fire!
2013-04-12 01:19:32 +02:00
Zbigniew Jędrzejewski-Szmek
8e2f9ebf28 hwclock: use _cleanup_ to simplify function 2013-04-11 19:13:18 -04:00
Zbigniew Jędrzejewski-Szmek
bcb161b023 errno is positive
Make sure we compare errno against positive error codes.
The ones in hwclock.c and install.c can have an impact, the
rest are unlikely to be hit or in code that isn't widely
used.

Also check that errno > 0, to help gcc know that we are
returning a negative error code.
2013-04-11 19:13:18 -04:00
Zbigniew Jędrzejewski-Szmek
0ad4e1a872 systemctl: show the name of failing unit in red
It makes it easier to pick out problematic unit
names from a long list.
2013-04-11 19:13:17 -04:00
Zbigniew Jędrzejewski-Szmek
20b3f379cf systemctl: allow multiple arguments to --type
This mirrors --property, and is generally useful.

New functionality is used in bash completion.

In case of zsh completion, new functionality is less useful
because of caching. Nevertheless, zsh completion for restart
is made to behave more-or-less the same as bash completion.
At least sockets can be restarted.
2013-04-11 19:11:52 -04:00
Lennart Poettering
296f3c53cb bus: fix formatting of bus address 2013-04-12 00:43:57 +02:00
Lennart Poettering
b4da268999 bus: fix kdbus ioctl invocation 2013-04-12 00:43:42 +02:00
Lennart Poettering
c320885c9f bus: properly check if kdbus connection worked 2013-04-12 00:43:29 +02:00
Lennart Poettering
de2975759d bus: fill in unique name when using kdbus 2013-04-12 00:43:12 +02:00
Lennart Poettering
dd418b9a69 bus: add kdbus test case 2013-04-12 00:26:12 +02:00
Lennart Poettering
6629161f82 bus: basic implementation of kdbus client side 2013-04-11 23:10:41 +02:00
Lennart Poettering
4cda0f2116 update TODO 2013-04-11 23:10:41 +02:00
Lennart Poettering
2100fa1099 bus: calculate iovec for messages only when we need it 2013-04-11 23:10:40 +02:00