Commit Graph
123 Commits
Author SHA1 Message Date
Lennart Poettering d8d3d8a781 bus: parse unit/user unit/session from cgroup path 2013-04-16 04:54:46 +02:00
Kay Sievers 6133cee253 bus: copy iteration macro from the kernel 2013-04-16 02:10:55 +02:00
Kay Sievers 68cfd33173 bus: catch up with kernel changes 2013-04-16 01:44:36 +02:00
Kay Sievers 8ad802ec35 bus: fix missing macro argument renaming
<fdo-vcs> systemd kay master * b1454bf src/libsystemd-bus/ bus-kernel.c kdbus.h
<fdo-vcs> systemd bus: catch up with kernel changes
<kmacleod> kay: randomly looked at your commit, it looks like in KDBUS_FOREACH_ITEM
  you missed changing a (d) to an (i) in (uint8_t*) (d) < (uint8_t*) (k) + (k)->size;  ?
<kay> kmacleod: hah, so there *is* a reason for using _foo in macros :)
<kay> kmacleod: thanks!
2013-04-15 23:39:42 +02:00
Kay Sievers b1454bf05c bus: catch up with kernel changes 2013-04-15 23:32:38 +02:00
Lennart Poettering 6c03089c32 bus: handle env vars safely
Make sure that our library is safe for usage in SUID programs when it
comes to env var handling
2013-04-15 14:05:03 +02:00
Lennart Poettering 4a875b6133 kdbus: parse cgroup meta data, too 2013-04-15 01:51:37 +02:00
Zbigniew Jędrzejewski-Szmek e9b807c168 bus: remove two unused variables 2013-04-14 18:52:24 -04:00
Lennart Poettering a56f19c4f9 kdbus: generare bloom filters properly for messages we send 2013-04-14 17:49:18 +02:00
Lennart Poettering 2404302e50 kdbus: update kdbus.h from upstream 2013-04-14 17:47:12 +02:00
Lennart Poettering 88fe224c8c bus: always explicitly rewind read index before passing message to caller or callback 2013-04-14 17:46:41 +02:00
Lennart Poettering 42c5aaf3ba bus: fix counting of argN= matches 2013-04-14 17:45:26 +02:00
Lennart Poettering ed5c5dbde1 util: introduce alloca0() and use it at a number of places 2013-04-14 17:43:59 +02:00
Kay Sievers 01f6c9d468 bus: zero data structure and catch up with error value change 2013-04-14 16:28:34 +02:00
Lennart Poettering 77930f1120 kdbus: also parse cmdline message attribute 2013-04-14 03:20:23 +02:00
Lennart Poettering 75722f1d48 kdbus: make name acquirement ioctls valgrind clean 2013-04-14 03:20:23 +02:00
Lennart Poettering 69aec65cf8 kdbus: parse even more kernel meta data fields 2013-04-13 21:53:11 +02:00
Lennart Poettering 5b7d4c1c16 kdbus: update to newest kdbus API 2013-04-13 20:12:37 +02:00
Zbigniew Jędrzejewski-Szmek 2244a6fbe6 util: add wrapper for realloc to avoid specyfing type 2013-04-12 19:26:12 -04:00
Lennart Poettering 2da833ac2d kdbus: make our little test pass cleanly again 2013-04-12 22:51:23 +02:00
Lennart Poettering b5baa8fe88 kbdus: add null bloom filter to our messages
This makes things work again with the requirements of the kernel on
bloom filters.
2013-04-12 22:48:36 +02:00
Lennart Poettering ed7d0b225b kdbus: use a valid service name for testing 2013-04-12 21:45:14 +02:00
Lennart Poettering cfde0327ad kdbus: update kdbus.h from upstream 2013-04-12 21:44:55 +02:00
Lennart Poettering d9115e1852 kdbus: make sure msg structure is properly initialized 2013-04-12 21:44:14 +02:00
Lennart Poettering e86b80b834 bus: don't calculate kmsg message too large 2013-04-12 21:43:50 +02:00
Lennart Poettering 3583882c4f bus: add kdbus test for name registry 2013-04-12 20:17:15 +02:00
Lennart Poettering 51038c0326 dbus: fill in kdbus sender+destination from kdbus data 2013-04-12 20:17:00 +02:00
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
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 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
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 2100fa1099 bus: calculate iovec for messages only when we need it 2013-04-11 23:10:40 +02:00
Lennart Poettering 9be9c7cff6 macro: make sure ALIGN() can be calculated constant by the compiler
If we pass a constant value to ALIGN() gcc should have the chance to
calculate the value during compilation rather than runtime, so let's
avoid a static inline call if we can.
2013-04-11 23:10:40 +02:00
Lukas Nykryn 4d3a5b1088 libsystemd-bus: initalize handle_cmsg to false 2013-04-10 18:59:42 -04:00
Lennart Poettering 1ef2af5ae0 bus: when we unmarshal an fd it should stay owned by the message object
If the user wants the fd to stay valid he should keep a reference to the
message object or duplicate the fd.

This unifies behaviour of demarshalling data fields and unix fds.
2013-04-10 23:23:19 +02:00