Age | Commit message (Collapse) | Author | |
---|---|---|---|
2013-11-22 | bus: add calls to query attached objects | Lennart Poettering | |
2013-11-22 | bus: also add error parameter to object find and enumerator callbacks | Lennart Poettering | |
Just in order to bring things inline with the method and property callbacks. | |||
2013-11-21 | bus: restore selinux access control to PID 1 for properties | Lennart Poettering | |
2013-11-21 | bus: properly serialize unit file change list | Lennart Poettering | |
2013-11-21 | logind,machined,run: properly invoke StartTransientUnit() bus call | Lennart Poettering | |
2013-11-21 | bus: rework message handlers to always take an error argument | Lennart Poettering | |
Message handler callbacks can be simplified drastically if the dispatcher automatically replies to method calls if errors are returned. Thus: add an sd_bus_error argument to all message handlers. When we dispatch a message handler and it returns negative or a set sd_bus_error we send this as message error back to the client. This means errors returned by handlers by default are given back to clients instead of rippling all the way up to the event loop, which is desirable to make things robust. As a side-effect we can now easily turn the SELinux checks into normal function calls, since the method call dispatcher will generate the right error replies automatically now. Also, make sure we always pass the error structure to all property and method handlers as last argument to follow the usual style of passing variables for return values as last argument. | |||
2013-11-21 | bus: the :no-sender hack is now unnecessary, since the new library doesn't ↵ | Lennart Poettering | |
require this anymore | |||
2013-11-21 | bus: update kdbus.h | Kay Sievers | |
2013-11-21 | bus: rename SD_BUS_ERROR_MAKE to SD_BUS_ERROR_MAKE_CONST to indicate it only ↵ | Lennart Poettering | |
works for const strings | |||
2013-11-21 | bus: let's simplify things by getting rid of unnecessary bus parameters | Lennart Poettering | |
2013-11-21 | bus: add API calls to escape string components of objects paths | Lennart Poettering | |
2013-11-21 | sd-event: try to move timer wakeups to the same spot within each minute | Lennart Poettering | |
2013-11-20 | event: make sure to possibly disarm the timerfds before we reenter epoll_wait | Lennart Poettering | |
2013-11-20 | event: don't disarm invalid timerfd | Lennart Poettering | |
2013-11-20 | bus: make sure an additional ref to a busevent source doesn't cause the ↵ | Lennart Poettering | |
event source to be triggered again | |||
2013-11-20 | event: whenever a time source changes pending state reshuffle elapsation prioqs | Lennart Poettering | |
2013-11-20 | event: when we change the io events to watch we need to figure out if a an ↵ | Lennart Poettering | |
event is pending again | |||
2013-11-20 | sd-event: fix comparison functions | Lennart Poettering | |
2013-11-20 | busctl: when no match is specified, add default match | Lennart Poettering | |
2013-11-20 | bus: add color and indentation to bus_message_dump() | Lennart Poettering | |
2013-11-20 | core: convert PID 1 to libsystemd-bus | Lennart Poettering | |
This patch converts PID 1 to libsystemd-bus and thus drops the dependency on libdbus. The only remaining code using libdbus is a test case that validates our bus marshalling against libdbus' marshalling, and this dependency can be turned off. This patch also adds a couple of things to libsystem-bus, that are necessary to make the port work: - Synthesizing of "Disconnected" messages when bus connections are severed. - Support for attaching multiple vtables for the same interface on the same path. This patch also fixes the SetDefaultTarget() and GetDefaultTarget() bus calls which used an inappropriate signature. As a side effect we will now generate PropertiesChanged messages which carry property contents, rather than just invalidation information. | |||
2013-11-20 | bus: add sd_bus_send_to() API call | Lennart Poettering | |
2013-11-20 | bus: bump serial number counter when sending already sealed messages | Lennart Poettering | |
2013-11-20 | bus: sd_bus_error_setxyz calls should always return the error as errno style ↵ | Lennart Poettering | |
negative int | |||
2013-11-20 | event: clear pending-state when re-arming timers | David Herrmann | |
If a timer fires and is marked pending, but an application re-arms it before it is dispatched, we now clear the pending state. This fixes a bug where an application arms a timer, which fires and is marked pending. But before it is dispatched, the application loses interest in it and disables it. Now if the timer is re-armed and re-enabled later, it will be immediately dispatched as it is still marked pending. This behavior is unexpected, so avoid it by clearing pending state when re-arming timers. Note that applications have no way to clear pending state themselves, so there's no current workaround. | |||
2013-11-20 | bus: fix error-path in bus_map_all_properties() | David Herrmann | |
We shouldn't return positive integers on errors. Fix the typo by removing the negation. | |||
2013-11-20 | bus/rtnl: silence clang warnings | Thomas Hindoe Paaboel Andersen | |
2013-11-18 | bus: TIMESTAMP is optional kdbus metadata now, NAMES are always added | Kay Sievers | |
2013-11-17 | bus: CREDS and NAMES are optional kdbus metadata now | Kay Sievers | |
2013-11-14 | bus: typo | Tom Gundersen | |
Fix a couple of 'void' that should have been 'sd_bus'. | |||
2013-11-12 | build-sys: add a link test for exported symbols | Zbigniew Jędrzejewski-Szmek | |
I know that this is a pretty big net to catch some small fish, but we *do* regularly forget to properly export symbols that were supposed to be exported. This time sd_bus_get_current and some renamed symbols are caught. | |||
2013-11-12 | bus: test-bus-objects - add missing header | Kay Sievers | |
2013-11-12 | bus: add missing dump.[ch] | Lennart Poettering | |
2013-11-12 | bus: beautify bus_message_dump() output a bit | Lennart Poettering | |
2013-11-12 | busctl: show machine name of all registered names | Lennart Poettering | |
2013-11-12 | bus: set no_auto_start flag for GetMachineId calls, so that we don't ↵ | Lennart Poettering | |
auto-start if we want to know the machine of a bus service | |||
2013-11-12 | bus: detect blocking message calls to our own connection and return ELOOP early | Lennart Poettering | |
2013-11-12 | bus: add api to control auto start message flag | Lennart Poettering | |
2013-11-12 | bus: introduce concept of a default bus for each thread and make use of it ↵ | Lennart Poettering | |
everywhere We want to emphasize bus connections as per-thread communication primitives, hence introduce a concept of a per-thread default bus, and make use of it everywhere. | |||
2013-11-12 | bus: introduce concept of a "default" event loop per-thread and make use of ↵ | Lennart Poettering | |
it everywhere Try to emphasize a bit that there should be a mapping between event loops and threads, hence introduce a logic that there's one "default" event loop for each thread, that can be queried via "sd_event_default()". | |||
2013-11-12 | test: fix minor memory leak in test-event | Lennart Poettering | |
2013-11-12 | bus: rename sd_bus_send_with_reply_and_block() to sd_bus_call() | Lennart Poettering | |
The call is one of the most important ones we expose, where we place major emphasis on. We should make sure to give it a short, memorable name. | |||
2013-11-11 | bus: add APIs for adding iovecs to messages as string or arrays | Lennart Poettering | |
2013-11-10 | bus: we really need to get rid of the :no-sender hack | Lennart Poettering | |
This is where a hack from PID 1 spilled into the client side. We need to get rid of this as soon as PID 1 is converted to libsystemd-bus. | |||
2013-11-10 | bus: actually export sd_utf8_is_valid() and sd_ascii_is_valid() | Lennart Poettering | |
2013-11-10 | bus: use ENXIO as error condition when trying to exit a container when we ↵ | Lennart Poettering | |
are not in any So far we used ENXIO whenever the user tried to read something from a function that didn't carry the right type, and hence use the same error here to indicate that what the user expected and what was in the message didn't match up. | |||
2013-11-09 | bus: fix build with old glibc | Zbigniew Jędrzejewski-Szmek | |
2013-11-09 | systemctl: make sure daemon-reload returns success | Zbigniew Jędrzejewski-Szmek | |
Also change sd_bus_message_exit_container to return -ENOENT when not in a container, to make it easier to distinguish different errors. | |||
2013-11-09 | bus: let magic ":no-sender" pass the validation | Kay Sievers | |
2013-11-08 | bus: allow queuing more local msgs | Lennart Poettering | |
When issuing a synchronous "systemctl daemon-reload" requests this will send out a tonload of UnitRemoved+UnitNew signals, that we will queue locally. When we wait for the message reply, we should be able to queue those, hence bump the limits on locally queuing messages. |