Age | Commit message (Collapse) | Author | |
---|---|---|---|
2013-11-30 | core: allocate a kdbus bus for each systemd instance, if we can | Lennart Poettering | |
2013-11-30 | bus: whenever we notice the connection is terminated enter CLOSING state | Lennart Poettering | |
2013-11-30 | bus: synthesize local error reply when we cannot deliver a message to kdbus ↵ | Lennart Poettering | |
because the destination is unavailable | |||
2013-11-30 | bus: don't generate NameAcquired/NameLost messages in the library | Lennart Poettering | |
The signals appear entirely redundant due to NameOwnerChange, hence don't do them in the new library, instead leave them for the compatibility bridge only. Also, set the serial number for synthesized messages to (uint32_t) -1. | |||
2013-11-29 | bus: revert attempts to make the integration-testing work | Kay Sievers | |
fa6ccbf42360cdd794ae3164b76e0cc8f0bd62de 197941a8d5d74d79ca45ae73ec114939a8e88244 547708f59edd73d98edcbe84e95b41f7b3321f3b | |||
2013-11-29 | bus: synthesize NameLost/NameAcquired from kernel messages on top if ↵ | Lennart Poettering | |
NameOwnerChange | |||
2013-11-29 | bus: fix callback index when dispatching kernel messages | Lennart Poettering | |
2013-11-29 | bus: add the ability for backends to queue to input messages at the same time | Lennart Poettering | |
We need this so that one incoming kernel message can result in two high-level bus messages, for the case where we synthesize NameAcquired and NameOwnerChanged in the same instance. | |||
2013-11-29 | libsystemd-bus: sd_bus_request_name: use kdbus_translate_request_name_flags() | Daniel Mack | |
2013-11-29 | libsystemd-bus: rename sd_bus_kernel_translate_request_name_flags | Daniel Mack | |
... to keep the namespace clean. | |||
2013-11-29 | libsystemd-bus: add kdbus support for sd_bus_get_owner() | Daniel Mack | |
2013-11-29 | libsystemd-bus: add sd_bus_translate_attach_flags() | Daniel Mack | |
Factor out code from sd_bus_negotiate_attach_creds() to a generic translate function, so it can be used from other places. | |||
2013-11-29 | libsystemd-bus: factor out DBus bits out of sd_bus_get_owner() | Daniel Mack | |
Just a preparation for upcoming kdbus support. | |||
2013-11-29 | bus: do not fail if "comm" information cannot be retrieved from /proc | Kay Sievers | |
2013-11-29 | bus: fix size calculation for match data | Kay Sievers | |
2013-11-29 | bus: when synthesizing messages locally, fill in a sender | Lennart Poettering | |
2013-11-29 | busctl: fix --help line breaks | Lennart Poettering | |
2013-11-29 | kdbus: synthesize NameOwnerChange signals from kernel messages and support ↵ | Lennart Poettering | |
matches against NameOwnerChange | |||
2013-11-29 | kdbus: add base enums for items | Lennart Poettering | |
2013-11-29 | bus: do not fail if task information cannot be retrieved from /proc | Kay Sievers | |
2013-11-29 | libsystemd-bus: clean up bus-control.c file | Lukasz Skalski | |
2013-11-29 | bus: do not fail if cgroup information cannot be retrieved from /proc | Kay Sievers | |
2013-11-29 | libsystemd-bus: catch up with latest kdbus changes | Kay Sievers | |
2013-11-29 | libsystemd-bus: follow kdbus renames | Daniel Mack | |
kdbus now has more generic names for the items it passes around. That allows for usage from other contexts. | |||
2013-11-29 | libsystemd-bus: copy over kdbus provided 128-bit bus id | Daniel Mack | |
kdbus now copies the bus unique id back to userspace in the hello ioctl(). Use these bytes to set the server id of the sd_bus. | |||
2013-11-29 | libsystemd-bus: catch up with latest kdbus changes | Daniel Mack | |
kdbus_cmd_hello now has a new uint64_t flags field for the requested attachments. Follow that change in libsystemd-bus. | |||
2013-11-29 | libsystemd-bus: sd_bus_request_name: fix return value for kdbus | Daniel Mack | |
kdbus returns -EALREADY if the requesting connection is already the owner of a name, and -EEXIST if the name already exists and the connection is not able to take it over. Also, n->flags needs a translation as well to match the SD_BUS_* enum values. | |||
2013-11-29 | libsystemd-bus: kernel: add sd_bus_kernel_translate_request_name_flags | Daniel Mack | |
Flags used to request a name from kdbus are not identical to what DBus and sd_bus use internally. Introduce a simple function to do the translation for us. It's factored out to a separate function so the dbus-driver instance can make use of it as well. | |||
2013-11-29 | libsystemd-bus: make sd_bus_list_names return all connections, including ↵ | Daniel Mack | |
unique names | |||
2013-11-29 | libsystemd-bus: add kdbus support for sd_bus_list_names() | Daniel Mack | |
kdbus will tell us the minimum buffer size it needs in case the default 8kb buffer doesn't suffice. | |||
2013-11-29 | libsystemd-bus: bring definitions in sync with kdbus | Daniel Mack | |
In particular, KDBUS_ITEM_NEXT is now called KDBUS_PART_NEXT, and KDBUS_ITEM_FOREACH was renamed to KDBUS_PART_FOREACH and takes one more argument to make it more flexible. | |||
2013-11-29 | bus: when turning a buffer into a sd_bus_message avoid creating zero-length ↵ | Lennart Poettering | |
parts | |||
2013-11-29 | bus: creds - ignore EINVAL when acessing the (inactive) LSM /proc interface | Kay Sievers | |
2013-11-29 | bus: Add KDBUS_MSG_SRC_NAMES to bus_kernel_make_message() function | Lukasz Skalski | |
2013-11-28 | busctl: drop bus driver name from list of services | Lennart Poettering | |
2013-11-28 | bus: merge sd_bus_get_owner() and sd_bus_get_owner_creds() into one call | Lennart Poettering | |
Since the backing ioctl for this on kdbus is the same we retain atomicity this way. | |||
2013-11-28 | bus: add new sd_bus_creds object to encapsulate process credentials | Lennart Poettering | |
This way we can unify handling of credentials that are attached to messages, or can be queried for bus name owners or connection peers. This also adds the ability to extend incomplete credential information with data from /proc, Also, provide a convenience call that will automatically determine the most appropriate credential object for an incoming message, by using the the attached information if possible, the sending name information if available and otherwise the peer's credentials. | |||
2013-11-28 | event: allow EPOLLET as event flag | David Herrmann | |
EPOLLET enables edge-triggered mode (see epoll(7) for more). For most use-cases, level-triggered is just fine, but for master-TTYs we need edge-triggered to catch EPOLLHUP. master-TTYs signal EPOLLHUP if no client is connected, but a client may connect some time later (same happens during vhangup(2)). However, epoll doesn't allow masking EPOLLHUP so it's signaled constantly. To avoid this, edge-triggered mode is needed. | |||
2013-11-28 | bus: add bus_name_has_owner() helper | David Herrmann | |
Small helper to run a synchronous "NameHasOwner" request on the dbus-daemon. | |||
2013-11-28 | bus: update kdbus.h and always subscribe to KDBUS_HELLO_ATTACH_NAMES | Kay Sievers | |
2013-11-27 | bus: properly handle if we get disconnected during HELLO phase | Lennart Poettering | |
2013-11-25 | bus: properly return errors to client if invalid parameters are passed to ↵ | Lennart Poettering | |
built-in methods | |||
2013-11-25 | delete unused variables | Thomas Hindoe Paaboel Andersen | |
2013-11-22 | bus: protected dual timestamp property macro for misusage | Lennart Poettering | |
2013-11-22 | bus: when closing a bus, drop all refs to queued messages, so that the bus ↵ | Lennart Poettering | |
can be freed | |||
2013-11-22 | bus: rework sd_bus_error APIs | Lennart Poettering | |
All calls that set a sd_bus_error structure will now return the same error converted to a negative errno. This may be used as syntactic sugar to return from a function and setting a bus_error structure in one go. Also, translate all Linux Exyz (EIO, EINVAL, EUCLEAN, EPIPE, ...) automatically into counterparts in the (new) "Posix.Error." namespace. If we fail to allocate memory for the components of a sd_bus_error automatically reset it to an OOM error which we always can write. | |||
2013-11-22 | bus: deal with duplicate values from enumerators | Lennart Poettering | |
2013-11-22 | event: rename sd_event_get() to sd_event_source_get_event() | Lennart Poettering | |
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. |