summaryrefslogtreecommitdiff
path: root/src/machine/machine-dbus.c
Commit message (Collapse)AuthorAge
* machined: remove spurious include of <sys/capability.h>Filipe Brandenburger2014-12-25
| | | | | | | | They do not use any functions from libcap directly. The CAP_KILL constant in use by these files comes from <linux/capability.h> imported through "missing.h". Tested that "systemd-machined" builds cleanly and works after this change.
* machined: introduce polkit for OpenLogin() callLennart Poettering2014-12-23
| | | | This way "machinectl login" can be opened up to run without privileges.
* machined: add new call OpenMachineLogin() that starts a getty in a container ↵Lennart Poettering2014-12-23
| | | | | | | on a pty and returns the pty master fd to the client This is a one-stop solution for "machinectl login", and should simplify getting logins in containers.
* systemd-run: support -t mode when combined with -MLennart Poettering2014-12-23
| | | | For that, ask machined for a container PTY and use that.
* machined: add OpenMachinePTY() bus call for allocating a PTY device within a ↵Lennart Poettering2014-12-23
| | | | | | container Then, port "machinectl" over to make use of it.
* machined: add a full bus object for imagesLennart Poettering2014-12-19
|
* machined/machinectl: add logic to show list of available imagesLennart Poettering2014-12-19
| | | | | | | | | This adds a new bus call to machined that enumerates /var/lib/container and returns all trees stored in it, distuingishing three types: - GPT disk images, which are files suffixed with ".gpt" - directory trees - btrfs subvolumes
* copy: use btrfs reflinking only whe we know we copy full filesLennart Poettering2014-12-12
|
* sd-bus: move common errors src/shared/bus-errors.h → ↵Lennart Poettering2014-12-10
| | | | | | src/libsystemd/sd-bus/bus-common-errors.h Stuff in src/shared/ should not use stuff from src/libsystemd/ really.
* rtnl: when querying local addresses and gateways, take address family into ↵Lennart Poettering2014-12-04
| | | | account
* networkd: add minimal client tool "networkd" to query network statusLennart Poettering2014-08-12
| | | | | | | In the long run this should become a full fledged client to networkd (but not before networkd learns bus support). For now, just pull interesting data out of networkd, udev, and rtnl and present it to the user, in a simple but useful output.
* change type for address family to "int"Lennart Poettering2014-07-18
| | | | | | | | Let's settle on a single type for all address family values, even if UNIX is very inconsitent on the precise type otherwise. Given that socket() is the primary entrypoint for the sockets API, and that uses "int", and "int" is relatively simple and generic, we settle on "int" for this.
* shared: rename PROTO_ADDRESS_SIZE() to FAMILY_ADDRESS_SIZE()Lennart Poettering2014-07-18
| | | | | We mostly use "family" to refer to AF_INET, AF_INET6, etc, let's use this terminology here, too
* machined: allow registering host-side network interfaces for communication ↵Lennart Poettering2014-07-10
| | | | with containers
* machined: when querying addresses of a container, use same code as ↵Lennart Poettering2014-07-10
| | | | nss-myhostname uses
* shared: split out in_addr related calls from socket-util.[ch] into its ↵Lennart Poettering2014-07-10
| | | | | | | private in-addr-util.[ch] These are enough calls for a new file, and they are sufficiently different from the sockaddr-related calls, hence let's split this out.
* machined: various modernizations when enumerating container addressesLennart Poettering2014-07-10
|
* machinectl: show /etc/os-release information of container in status outputLennart Poettering2014-07-03
|
* machined: add logic to query IP addresses of containersLennart Poettering2014-05-18
|
* sd-bus: introduce sd_bus_slot objects encapsulating callbacks or vtables ↵Lennart Poettering2014-05-15
| | | | | | | | | | | attached to a bus connection This makes callback behaviour more like sd-event or sd-resolve, and creates proper object for unregistering callbacks. Taking the refernce to the slot is optional. If not taken life time of the slot will be bound to the underlying bus object (or in the case of an async call until the reply has been recieved).
* bus: replace sd_bus_label_{escape,unescape}() by new ↵Lennart Poettering2014-03-11
| | | | | | | | | | | sd_bus_path_{encode,decode}() The new calls work similarly, but enforce a that a common, fixed bus path prefix is used. This follows discussions with Simon McVittie on IRC that it should be a good idea to make sure that people don't use the escaping applied here too wildly as anything other than the last label of a bus path.
* Introduce strv_consume which takes ownershipZbigniew Jędrzejewski-Szmek2014-03-04
| | | | This mirrors set_consume and makes the common use a bit nicer.
* machined: optionally, allow registration of pre-existing units (scopesLennart Poettering2014-02-11
| | | | or services) as machine with machined
* bus: decorate the various object vtables with SD_BUS_VTABLE_PROPERTY_CONST ↵Lennart Poettering2013-12-22
| | | | where appropriate
* bus: add new sd_bus_creds object to encapsulate process credentialsLennart Poettering2013-11-28
| | | | | | | | | | | | | 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.
* bus: also add error parameter to object find and enumerator callbacksLennart Poettering2013-11-22
| | | | | Just in order to bring things inline with the method and property callbacks.
* bus: rework message handlers to always take an error argumentLennart Poettering2013-11-21
| | | | | | | | | | | | | | | | | | | | 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.
* bus: let's simplify things by getting rid of unnecessary bus parametersLennart Poettering2013-11-21
|
* bus: add API calls to escape string components of objects pathsLennart Poettering2013-11-21
|
* logind: add virtual object paths that always can be used to refer to the ↵Lennart Poettering2013-11-05
| | | | | | | callers session, user, seat or machine object This way clients can skip invoking GetSessionByPID() for their own PID or a similar call to access these objects.
* machined: simplificationsLennart Poettering2013-11-05
|
* machined: port over to libsystemd-busLennart Poettering2013-10-30
|
* logind: update the session state file before we send out the CreateSession() ↵Lennart Poettering2013-07-26
| | | | | | reply https://bugs.freedesktop.org/show_bug.cgi?id=67273
* machined: correct how some properties are exported on the busLennart Poettering2013-07-19
|
* machined: fix bus path unescapingLennart Poettering2013-07-02
|
* machined: split out machine registration stuff from logindLennart Poettering2013-07-02
Embedded folks don't need the machine registration stuff, hence it's nice to make this optional. Also, I'd expect that machinectl will grow additional commands quickly, for example to join existing containers and suchlike, hence it's better keeping that separate from loginctl.