summaryrefslogtreecommitdiffstats
path: root/src/bus-driverd (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Introduce strv_consume which takes ownershipZbigniew Jędrzejewski-Szmek2014-03-041-5/+3
| | | | This mirrors set_consume and makes the common use a bit nicer.
* api: in constructor function calls, always put the returned object pointer ↵Lennart Poettering2014-02-201-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | first (or second) Previously the returned object of constructor functions where sometimes returned as last, sometimes as first and sometimes as second parameter. Let's clean this up a bit. Here are the new rules: 1. The object the new object is derived from is put first, if there is any 2. The object we are creating will be returned in the next arguments 3. This is followed by any additional arguments Rationale: For functions that operate on an object we always put that object first. Constructors should probably not be too different in this regard. Also, if the additional parameters might want to use varargs which suggests to put them last. Note that this new scheme only applies to constructor functions, not to all other functions. We do give a lot of freedom for those. Note that this commit only changes the order of the new functions we added, for old ones we accept the wrong order and leave it like that.
* includes: remove duplicate includesTom Gundersen2014-02-101-1/+0
| | | | Found by the new check-includes make target.
* bus: the owner of the bus driver name as reported by the driver'sLennart Poettering2014-01-291-11/+33
| | | | | GetNameOwner() bus call is the bus driver name itself, for compatibility with dbus1
* bus: add API calls for connecting to starter busLennart Poettering2014-01-271-5/+1
| | | | | | | Add new calls sd_bus_open() and sd_bus_default() for connecting to the starter bus a service was invoked for, or -- if the process is not a bus-activated service -- the appropriate bus for the scope the process has been started in.
* bus: make the bus driver support the driver interface under both / and ↵Lennart Poettering2014-01-091-1/+46
| | | | | | | | /org/freedesktop/DBus Some clients apparently use the "/" path instead of "/org/freedesktop/DBus". dbus-daemon didn't care, so we need to support both.
* driverd: fix use-after-free error when maintaining match listsLennart Poettering2014-01-081-1/+1
|
* Revert "bus-driverd: do not track identical matches"Kay Sievers2014-01-081-4/+1
| | | | This reverts commit 234e28aa1cd37dee597c719ac5ca004c6215d28c.
* bus-driverd: do not track identical matchesKay Sievers2014-01-081-1/+4
| | | | | | | | | Identical matches are only one time in the hash map but multiple times in the list; when removing, the hash will be empty but the list still has entries. Not adding dupicates to the list should keep us in sync and prevent hitting the assert.
* bus-driverd: properly reply to UpdateActivationEnvironment callKay Sievers2014-01-081-1/+5
|
* bus-driverd: implement UpdateActivationEnvironment methodKay Sievers2014-01-081-1/+56
|
* bus-driverd: support user modeKay Sievers2014-01-081-2/+6
|
* Revert "bus: driverd: don't attempt to remove from empty list"Kay Sievers2014-01-051-3/+3
| | | | | | | We need to find the real reason for the failure, this just avoids the symptoms. This reverts commit 215c7625dd510759290d45d6c46434e4338843ec.
* bus: driverd: don't attempt to remove from empty listMarc-Antoine Perennou2014-01-051-3/+3
|
* bus: driverd; add missing format string parameterMarc-Antoine Perennou2013-12-281-1/+1
| | | | This was causing a nasty coredump
* bus: fix return message if StartServiceByName() in the driver fails dueLennart Poettering2013-12-241-1/+1
| | | | to non-existing service
* log: log_error() and friends add a newline after each line anyway, so avoid ↵Lennart Poettering2013-12-241-1/+1
| | | | including it in the log strings
* bus: update kdbus.hKay Sievers2013-12-231-3/+3
|
* bus: fix bad memory access in driverd when we get an empty triggers listLennart Poettering2013-12-211-1/+1
|
* driverd: properly handle NameHasOwner() for unique namesLennart Poettering2013-12-211-5/+5
|
* bus: unify credential query code in driverdLennart Poettering2013-12-211-48/+42
|
* bus: when client asks driverd for credentials of a name, return a useful ↵Lennart Poettering2013-12-211-0/+8
| | | | error if that name doesn't exist on the bus
* driverd: make sure AddMatch is accessible without privilegesLennart Poettering2013-12-211-1/+1
|
* driverd: sort list of names returned by ListNamesLennart Poettering2013-12-211-0/+6
|
* bus: fix exit-on-idle for driverdLennart Poettering2013-12-191-1/+8
|
* driverd: implement AddMatch/RemoveMatch logicLennart Poettering2013-12-191-32/+313
|
* bus-driverd: fix flags translation in driver_request_nameLukasz Skalski2013-12-181-1/+1
| | | | | Flags for a name entry (KDBUS_NAME_*) should be set for cmd_name->flags (not conn_flags)
* bus: beef up driverdLennart Poettering2013-12-181-119/+172
| | | | | | | | Add validity checks for all parameters passed in. Implement ReleaseName and StartServiceByName(). Fix access control in vtable.
* bus: properly return an error code when release_name fails abnormallyLennart Poettering2013-12-171-4/+3
|
* bus-driverd: Fix return code in driver_request_nameLukasz Skalski2013-12-171-3/+12
| | | | | | | | | | RequestName return codes should be consistent with Dbus Specification. VALUE - DESCRIPTION 1-The caller is now the primary owner of the name, replacing any previous owner, 2-The name already had an owner (QUEUE flag was not specified), 3-The name already has an owner (QUEUE flag was specified), 4-Application trying to request ownership of a name is already the owner of it.
* bus: removed unused variable in driverdThomas Hindoe Paaboel Andersen2013-12-171-1/+0
| | | | acked by Daniel Mack
* bus: make driverd code more similar to other daemons, and make it exit on ↵Lennart Poettering2013-12-171-110/+44
| | | | idle among other things
* bus: install unit files for new driver serviceLennart Poettering2013-12-171-0/+1
|
* bus-driverd: Fix unique name return in driver_get_name_ownerLukasz Skalski2013-12-171-1/+1
|
* bus-driverd: actually add --versionZbigniew Jędrzejewski-Szmek2013-12-171-7/+5
|
* Add bus-driverdDaniel Mack2013-12-161-0/+544
systemd-bus-driverd is a small daemon that connects to kdbus and implements the org.freedesktop.DBus interface. IOW, it provides the bus functions traditionally taken care for by dbus-daemon. Calls are proxied to kdbus, either via libsystemd-bus (were applicable) or with the open-coded use of ioctl(). Note that the implementation is not yet finished as the functions to add and remove matches and to start services by name are still missing.