[systemd-devel] [PATCH] use memzero(foo, length); for all memset(foo, 0, length); calls

2014-01-30 Thread Greg KH
In trying to track down a stupid linker bug, I noticed a bunch of memset() calls that should be using memzero() to make it more "obvious" that the options are correct (i.e. 0 is not the length, but the data to set). So fix up all current calls to memset(foo, 0, length) to memzero(foo, length). --

Re: [systemd-devel] [PATCH] tmpfiles: Add free that was missed in 5c795114

2014-01-30 Thread Zbigniew Jędrzejewski-Szmek
On Thu, Jan 30, 2014 at 05:15:27PM -0800, Michael Marineau wrote: > --- > src/tmpfiles/tmpfiles.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/src/tmpfiles/tmpfiles.c b/src/tmpfiles/tmpfiles.c > index bff9527..ae74af9 100644 > --- a/src/tmpfiles/tmpfiles.c > +++ b/src/tmpfiles/tmpfile

[systemd-devel] [PATCH] tmpfiles: Add free that was missed in 5c795114

2014-01-30 Thread Michael Marineau
--- src/tmpfiles/tmpfiles.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tmpfiles/tmpfiles.c b/src/tmpfiles/tmpfiles.c index bff9527..ae74af9 100644 --- a/src/tmpfiles/tmpfiles.c +++ b/src/tmpfiles/tmpfiles.c @@ -1509,6 +1509,7 @@ finish: hashmap_free(globs); strv_fr

Re: [systemd-devel] [PATCH 1/1] Allow systemd to run without assigning container to machine.slice

2014-01-30 Thread Zbigniew Jędrzejewski-Szmek
On Thu, Jan 30, 2014 at 04:29:14PM -0500, Dan Walsh wrote: > If I want to run a container as a service, it would be nice if it used the > service > cgroup configuration Your patch will break the integration with machienctl, etc. Would instead assigning the slice with --slice be enough? Zbyszek _

Re: [systemd-devel] [PATCH 1/1] Allow systemd to run without assigning container to machine.slice

2014-01-30 Thread David Timothy Strauss
This seems applicable to what I'm working on (SaaS/PaaS company), but I'm not sure I understand the distinction in capability this change makes. ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listin

[systemd-devel] [PATCH 1/1] Allow systemd to run without assigning container to machine.slice

2014-01-30 Thread Dan Walsh
If I want to run a container as a service, it would be nice if it used the service cgroup configuration --- src/nspawn/nspawn.c | 17 + 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c index 1394ee6..9042412 100644 --- a/src/

[systemd-devel] [PATCH 1/1] Add SELinux support to systemd-nspawn

2014-01-30 Thread Dan Walsh
This patch adds to new options: -Z PROCESS_LABEL This specifies the process label to run on processes run within the container. -L FILE_LABEL The file label to assign to memory file systems created within the container. For example if you wanted to wrap an container with SELinux sandbox labels

Re: [systemd-devel] systemd-208: auto-stopping of user@.service on last session exit

2014-01-30 Thread Lennart Poettering
On Thu, 30.01.14 20:23, Ivan Shapovalov (intelfx...@gmail.com) wrote: > Hello! > > Is it intentional that even with KillUserProcesses=no, > user@.service is stopped as soon as the last user's session ends? > > And, in any case, is it possible to avoid that? > > To avoid XY problem: I'm trying t

Re: [systemd-devel] systemd-208: auto-stopping of user@.service on last session exit

2014-01-30 Thread Ivan Shapovalov
On Thursday 30 January 2014 at 17:36:29, Lennart wrote: > On Thu, 30.01.14 20:23, Ivan Shapovalov (intelfx...@gmail.com) wrote: > > Hello! > > > > Is it intentional that even with KillUserProcesses=no, > > user@.service is stopped as soon as the last user's session ends? > > > > And, in any case,

[systemd-devel] systemd-208: auto-stopping of user@.service on last session exit

2014-01-30 Thread Ivan Shapovalov
Hello! Is it intentional that even with KillUserProcesses=no, user@.service is stopped as soon as the last user's session ends? And, in any case, is it possible to avoid that? To avoid XY problem: I'm trying to run a global per-user tmux server inside the systemd user instance. Thanks, -- Iva

[systemd-devel] [PATCH] journal: Drop pkgconfig reference to libsystemd-id128.

2014-01-30 Thread Colin Guthrie
This is now part of libsystemd. --- src/journal/libsystemd-journal.pc.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/journal/libsystemd-journal.pc.in b/src/journal/libsystemd-journal.pc.in index 9883595..8418aaa 100644 --- a/src/journal/libsystemd-journal.pc.in +++ b/s

Re: [systemd-devel] [Patch 0/2] logind: make sure that closed sessions will be cleaned

2014-01-30 Thread Djalal Harouni
Hi list, On Wed, Jan 22, 2014 at 10:24:24AM +0100, Djalal Harouni wrote: > On Thu, Jan 16, 2014 at 11:19:08AM +0100, Djalal Harouni wrote: > > On Thu, Jan 16, 2014 at 06:01:58AM +0100, Zbigniew Jędrzejewski-Szmek wrote: > > > Indeed, in a container (without your patches), sessions remain in > > >

Re: [systemd-devel] Debian Bug#618862: systemd: ignores keyscript in crypttab - a possible solution

2014-01-30 Thread David Härdeman
On 2013-06-25 17:47, Michael Biebl wrote: Am 25.06.2013 13:13, schrieb Harald Jenny: Dear Michael Biebl, following the systemd survey and discussion I think these mails might be of interest to you concerning possible ways to solve the current issue (not only in Debian but also SuSE/upstream i