Age | Commit message (Collapse) | Author | |
---|---|---|---|
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. | |||
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. |