Re: [systemd-devel] Users and system namespaces

2014-01-24 Thread Ben Boeckel
On Fri, Jan 24, 2014 at 11:07:18 +0100, Lennart Poettering wrote: On Thu, 23.01.14 13:54, Ben Boeckel (maths...@gmail.com) wrote: As I mused on LWN[1] recently, I was wondering whether it was possible to have user units be able to hook into namespaces (namely the PrivateNetwork

[systemd-devel] Users and system namespaces

2014-01-23 Thread Ben Boeckel
Hi, As I mused on LWN[1] recently, I was wondering whether it was possible to have user units be able to hook into namespaces (namely the PrivateNetwork= and PrivateTmp= from systemd.exec(5) and more if other namespacing options are added in the future). I'm assuming that is not possible now to

Re: [systemd-devel] Users and system namespaces

2014-01-23 Thread Ben Boeckel
On Thu, Jan 23, 2014 at 11:43:52 -0800, David Timothy Strauss wrote: To join a namespace, you'll need a file descriptor for the namespace so you can run setns() [1]. It's possible to share a file descriptor by keeping it open while forking (which is how socket activation works) or passing it

Re: [systemd-devel] Users and system namespaces

2014-01-23 Thread Ben Boeckel
On Thu, Jan 23, 2014 at 13:21:30 -0800, David Timothy Strauss wrote: I think the intention for your needs (a lot of namespace sharing for a family of services) would be to run another systemd in a namespece using something like systemd-nspawn, libvirt-lxc, LXC, a user session, or similar.

[systemd-devel] [PATCH 0/6] Add 'lock' action for hardware buttons

2012-10-27 Thread Ben Boeckel
. Feedback greatly appreciated. --Ben (I'm not subscribed to the list) Ben Boeckel (6): units: add target for locking all active sessions logind: add lock action for button triggers dbus: add a signal before locking the system logind: add inhibit support for a system-wide lock NEWS: add

[systemd-devel] [PATCH 1/6] units: add target for locking all active sessions

2012-10-27 Thread Ben Boeckel
--- Makefile.am | 3 +++ man/systemd.special.xml | 8 units/.gitignore | 1 + units/lock.target | 14 ++ units/systemd-lock.service.in | 17 + 5 files changed, 43 insertions(+) create mode 100644

[systemd-devel] [PATCH 2/6] logind: add lock action for button triggers

2012-10-27 Thread Ben Boeckel
--- man/logind.conf.xml | 5 +++-- src/login/logind-button.c | 9 ++--- src/login/logind-button.h | 1 + 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/man/logind.conf.xml b/man/logind.conf.xml index 3d83d2c..10ea9e8 100644 --- a/man/logind.conf.xml +++

[systemd-devel] [PATCH 3/6] dbus: add a signal before locking the system

2012-10-27 Thread Ben Boeckel
--- src/login/logind-dbus.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/login/logind-dbus.c b/src/login/logind-dbus.c index a7647e3..5417e3b 100644 --- a/src/login/logind-dbus.c +++ b/src/login/logind-dbus.c @@ -197,6 +197,9 @@ signal

[systemd-devel] [PATCH 4/6] logind: add inhibit support for a system-wide lock

2012-10-27 Thread Ben Boeckel
--- src/login/logind-dbus.c| 7 --- src/login/logind-inhibit.c | 6 +- src/login/logind-inhibit.h | 3 ++- src/login/org.freedesktop.login1.policy.in | 10 ++ 4 files changed, 21 insertions(+), 5 deletions(-) diff --git

Re: [systemd-devel] [PATCH 5/6] NEWS: add a note

2012-10-27 Thread Ben Boeckel
On Sat, Oct 27, 2012 at 23:37:23 +0200, Lennart Poettering wrote: Uh? 195 is already released, this stuff should not be added to the CHANGES list for 195, but put into a new section for 196. Sorry about that, I'm used to bumping the release in the configuration files right after a release so