Age | Commit message (Collapse) | Author | |
---|---|---|---|
2013-12-10 | bus: generate debug messages when we cannot deliver messages via kdbus | Lennart Poettering | |
2013-12-10 | bus: when we _unref() a NULL pointer, don't use assert_return() | Lennart Poettering | |
We support unreffing NULL pointers just fine and we shouldn't pay the _unlikely_() price for it, not get a debug message if we do, hence let's not use assert_return() here. | |||
2013-12-10 | bus: Add bus_kernel_monitor function | Lukasz Skalski | |
2013-12-10 | Revert "libsystemd-bus: use assert_return" | Lennart Poettering | |
This reverts commit f7e2bd5a8070ba86cba6bcbf7d1c9a8173d846d4. Most of these checks are not programming errors, but happen during normal runtime. For example bus_kernel_pop_memfd() is called all the time on non-kdbus systems and is supposed to quickly fail if kdbus is not available. However, assert_return() makes this failure expensive, and hence has no place here. With the most recent change to assert_return() it will even log a debug message, which should never happen here. | |||
2013-12-10 | bus: update kdbus.h | Kay Sievers | |
2013-12-10 | macro: log assertion at debug level in assert_return() | Lennart Poettering | |
2013-12-10 | bus: introduce new SD_BUS_VTABLE_HIDDEN flag for vtable members | Lennart Poettering | |
When this flag is set then its member will not be shown in the introspection data. Also, properties with this flag set will not be included in GetAll() responses. | |||
2013-12-10 | bus: introduce "trusted" bus concept and encode access control in object vtables | Lennart Poettering | |
Introduces a new concept of "trusted" vs. "untrusted" busses. For the latter libsystemd-bus will automatically do per-method access control, for the former all access is automatically granted. Per-method access control is encoded in the vtables: by default all methods are only accessible to privileged clients. If the SD_BUS_VTABLE_UNPRIVILEGED flag is set for a method it is accessible to unprivileged clients too. By default whether a client is privileged is determined via checking for its CAP_SYS_ADMIN capability, but this can be altered via the SD_BUS_VTABLE_CAPABILITY() macro that can be ORed into the flags field of the method. Writable properties are also subject to SD_BUS_VTABLE_UNPRIVILEGED and SD_BUS_VTABLE_CAPABILITY() for controlling write access to them. Note however that read access is unrestricted, as PropertiesChanged messages might send out the values anyway as an unrestricted broadcast. By default the system bus is set to "untrusted" and the user bus is "trusted" since per-method access control on the latter is unnecessary. On dbus1 busses we check the UID of the caller rather than the configured capability since the capability cannot be determined without race. On kdbus the capability is checked if possible from the attached meta-data of a message and otherwise queried from the sending peer. This also decorates the vtables of the various daemons we ship with these flags. | |||
2013-12-09 | libsystemd-bus: use assert_return | Lukasz Skalski | |
2013-12-10 | test: add gvariant test for empty messages | Lennart Poettering | |
2013-12-10 | bus: properly handle empty messages | Lennart Poettering | |
2013-12-10 | bus: empty gvariant arrays should at least get size 1 | Lennart Poettering | |
2013-12-10 | bus: it's OK to send messages with an empty payload but non-empty signature | Lennart Poettering | |
THis might happen when sending arrays with 0 enttries, hence this is not an indication for a problem. | |||
2013-12-10 | bus: update kdbus.h | Lennart Poettering | |
2013-12-10 | bus: make gcc shut up | Lennart Poettering | |
2013-12-10 | bus: beef up zero copy test case | Lennart Poettering | |
2013-12-10 | bus: only accept gvariant native endian messages via kdbus | Lennart Poettering | |
2013-12-10 | bus: fix rewinding in gvariant messages | Lennart Poettering | |
2013-12-10 | bus: fix signature handling when exiting container | Lennart Poettering | |
2013-12-10 | bus: properly deserialize gvariant fixed size arrays | Lennart Poettering | |
2013-12-10 | bus: handler empty messages correctly when using gvariant marshalling | Lennart Poettering | |
2013-12-10 | bus: suppress creating empty parts in messages | Lennart Poettering | |
2013-12-09 | bus: rely on explicit eof check instead of checking when mapping payload | Lennart Poettering | |
This allows us to drop quite a bit of code. | |||
2013-12-09 | bus: rearrange bus-message.c function order to keep read and write calls ↵ | Lennart Poettering | |
together | |||
2013-12-09 | bus: demarshal gvariant | Lennart Poettering | |
2013-12-06 | bus: catch up with latest kdbus changes | Kay Sievers | |
2013-12-06 | bus: catch up with latest kdbus changes | Kay Sievers | |
2013-12-06 | bus: catch up with latest kdbus changes | Kay Sievers | |
2013-12-06 | busctl: remove ','; it's all one string | Kay Sievers | |
2013-12-05 | shell-completion: busctl | Zbigniew Jędrzejewski-Szmek | |
2013-12-06 | bus: update kdbus.h | Kay Sievers | |
2013-12-05 | test-bus-gvariant: remove unused variable | Thomas Hindoe Paaboel Andersen | |
2013-12-05 | bus: start maintaining a list of difference between kdbus/dbus1 | Lennart Poettering | |
2013-12-05 | bus: add missing LE meta data enforcement for gvariant serializer | Lennart Poettering | |
2013-12-05 | bus: add support for serializing to gvariant | Lennart Poettering | |
(deserialization is still missing, hence this is not hooked up to kdbus) | |||
2013-12-05 | bus: switch to multiple KDBUS_ITEM_NAME including the flags | Kay Sievers | |
2013-12-04 | libsystemd-bus: catch up with latest kdbus changes | Kay Sievers | |
2013-12-04 | libsystemd-bus: catch up with latest kdbus list query changes | Kay Sievers | |
2013-12-03 | trivial coding style clean ups | Thomas Hindoe Paaboel Andersen | |
- Add space between if/for and the opening parentheses - Place the opening brace on same line as the function (not for udev) From the CODING_STYLE Try to use this: void foo() { } instead of this: void foo() { } | |||
2013-12-03 | sd-memfd: use assert_return | Thomas Hindoe Paaboel Andersen | |
2013-12-03 | bus: fix parsing of AcquireName() response | Lennart Poettering | |
2013-12-03 | bus: don't make use of the private bus socket if kdbus is available | Lennart Poettering | |
2013-12-03 | bus: rework sd_bus_list_names() to return two lists for acquired and ↵ | Lennart Poettering | |
activatable names | |||
2013-12-03 | bus: internalize a lot of protocol definitions | Lennart Poettering | |
We shouldn export what isn't necessary or useful to clients, so let's add the protocol definitions we only need internally into a private header. | |||
2013-12-03 | bus: make sd_bus_request_name() and sd_bus_release_name() behave more like ↵ | Lennart Poettering | |
other calls Instead of returning an enum of return codes, make them return error codes like kdbus does internally. Also, document this behaviour so that clients can stick to it. (Also rework bus-control.c to always have to functions for dbus1 vs. kernel implementation of the various calls.) | |||
2013-12-03 | libsystemd-bus: catch up with latest kdbus changes | Daniel Mack | |
2013-12-03 | libsystemd-bus: catch up with latest kdbus changes | Daniel Mack | |
2013-12-02 | bus: add .busname unit type to implement kdbus-style bus activation | Lennart Poettering | |
2013-12-02 | bus: make sure we check for "incompatible" flags negotiated with kernel kdbus | Lennart Poettering | |
2013-12-02 | libsystemd-bus: catch up with latest kdbus changes | Daniel Mack | |