Re: [systemd-devel] [PATCH 3/4] units: differentiate the bus proxy and bus driver for the user manager

2013-12-30 Thread Giovanni Campagna
2013/12/27 Kay Sievers : > On Fri, Dec 27, 2013 at 4:45 AM, Kay Sievers wrote: >> On Thu, Dec 26, 2013 at 11:35 PM, Giovanni Campagna >> wrote: >> >>> they do need the IPC_OWNER capability, to fake credentials >>> on kdbus. >> >> Oh, I guess we

[systemd-devel] [PATCH 0/4] Fix running the user manager under kdbus

2013-12-26 Thread Giovanni Campagna
After seeing Kay's (and now Lennart's) posts on Google+, I wanted to give kdbus a try, and I decided to try in the user manager (because I'm not ready to switch my only system, and a container doesn't seem practical). With the following patches, I can run the user manager connected to the user kdbu

[systemd-devel] [PATCH 2/4] Fix dependencies of triggers for the user manager

2013-12-26 Thread Giovanni Campagna
From: Giovanni Campagna Extend the build system to install .wants/ links for the user trigger (socket, path, timer and busname) units too, and make sure they are pulled in by default.target. --- Makefile.am | 38 -- units/user/default.target

[systemd-devel] [PATCH 4/4] core: don't add a dependency to dbus.socket for the user bus

2013-12-26 Thread Giovanni Campagna
From: Giovanni Campagna When running off dbus-daemon, the user bus is not in a well-defined location, and is sometimes used as the session bus or something entirely different. In any case, it is safe to assume the bus already exists. When running off kdbus, there is no dbus.socket at all. This

[systemd-devel] [PATCH 1/4] bus-driverd: allow running for the user bus

2013-12-26 Thread Giovanni Campagna
From: Giovanni Campagna Accept a command line argument, --user, that instructs the bus driver to connect to the user bus instead of the system bus. For consistency with other services, --system, --help and --version are recognized too. --- src/bus-driverd/bus-driverd.c | 78

[systemd-devel] [PATCH 3/4] units: differentiate the bus proxy and bus driver for the user manager

2013-12-26 Thread Giovanni Campagna
From: Giovanni Campagna The bus proxy and bus driver need to connect to the user bus when started by the user manager, so they need different service files. Also, they cannot have their capability bounding set restricted (because the unprivileged systemd can't do that), and at the same time

[systemd-devel] [PATCH v2] sd-login: add a public accessor for the VT number

2013-09-11 Thread Giovanni Campagna
From: Giovanni Campagna The VT number was already part of the DBus API, but was not exposed in the C API. --- man/sd_session_is_active.xml | 13 + src/login/libsystemd-login.sym | 5 + src/login/sd-login.c | 18 ++ src/systemd/sd-login.h | 3

[systemd-devel] [PATCH] sd-login: add a public accessor for the VT number

2013-08-22 Thread Giovanni Campagna
From: Giovanni Campagna The VT number was already part of the DBus API, but was not exposed in the C API. --- src/login/sd-login.c | 4 src/systemd/sd-login.h | 3 +++ 2 files changed, 7 insertions(+) diff --git a/src/login/sd-login.c b/src/login/sd-login.c index 0658792..2ea823d 100644

[systemd-devel] [PATCH v2] localectl: support systems without locale-archive

2013-01-04 Thread Giovanni Campagna
Not all systems ships with locales inside /usr/lib/locale-archive, some prefer to have locale data as individual subdirectories of /usr/lib/locale. (A notable example of this is OpenEmbeddded, and OSes deriving from it like gnome-ostree). Given that glibc supports both ways, localectl should too. -

[systemd-devel] [PATCH] localectl: support systems without locale-archive

2012-12-31 Thread Giovanni Campagna
From: Giovanni Campagna Not all systems ships with locales inside /usr/lib/locale-archive, some prefer to have locale data as individual subdirectories of /usr/lib/locale. (A notable example of this is OpenEmbeddded, and OSes deriving from it like gnome-ostree). Given that glibc supports both