Re: [systemd-devel] Apparmor profile switching support

2014-01-05 Thread Zbigniew Jędrzejewski-Szmek
On Fri, Jan 03, 2014 at 05:58:46PM +0100, Michael Scherer wrote: > Le vendredi 03 janvier 2014 à 17:22 +0100, m...@zarb.org a écrit : > > As discussed on the SELinux thread, this patch attempt to offer the same > > level of configuration for Apparmor distributions by permitting to the > > sysadmin

Re: [systemd-devel] [PATCH 1/2] Add switch_apparmor_profile helper, to switch the profile of the next command to run. This can be used to load a custom apparmor profile for a unit.

2014-01-05 Thread Zbigniew Jędrzejewski-Szmek
On Fri, Jan 03, 2014 at 05:22:42PM +0100, m...@zarb.org wrote: > From: Michael Scherer > > --- > src/shared/apparmor-util.c | 15 +++ > src/shared/apparmor-util.h | 1 + > 2 files changed, 16 insertions(+) > > diff --git a/src/shared/apparmor-util.c b/src/shared/apparmor-util.c > i

Re: [systemd-devel] [WIP][RFC][PATCH] networkd: generate resolv.conf

2014-01-05 Thread Tom Gundersen
Hi Djalal, On Mon, Jan 6, 2014 at 12:17 AM, Djalal Harouni wrote: >> 1) nameservers receieved over DHCP >> 2) nameservers statically configured in a currently active .network file >> 3) nameservers statically configured in the global networkd configuration >> file [...] >> So first question

Re: [systemd-devel] [WIP][RFC][PATCH] networkd: generate resolv.conf

2014-01-05 Thread Djalal Harouni
Hi Tom, On Sun, Jan 05, 2014 at 11:49:33PM +0100, Tom Gundersen wrote: > This adds support to generate a basic resolv.conf in /run/systemd/network. > This file will not take any effect unless the admin makes a symlink from > /etc/resolv.conf. > > The precedence of nameservers is: > > 1) nameser

[systemd-devel] [WIP][RFC][PATCH] networkd: generate resolv.conf

2014-01-05 Thread Tom Gundersen
This adds support to generate a basic resolv.conf in /run/systemd/network. This file will not take any effect unless the admin makes a symlink from /etc/resolv.conf. The precedence of nameservers is: 1) nameservers receieved over DHCP 2) nameservers statically configured in a currently active .

Re: [systemd-devel] [PATCH] core: support Distribute=n to distribute to n workers

2014-01-05 Thread Zbigniew Jędrzejewski-Szmek
On Thu, Dec 19, 2013 at 12:21:26PM -0800, Shawn Landden wrote: > On Fri, Dec 13, 2013 at 8:23 PM, Shawn Landden wrote: > > If Distribute=n, turns SO_REUSEPORT on, and spawns > > n workers to handling incoming requests. > > > > SO_REUSEPORT sockets on the same port must all be created > > by the sa

Re: [systemd-devel] [RFC][PATCH] net: set default DEVTYPE for all ethernet based devices

2014-01-05 Thread Tom Gundersen
On Sun, Jan 5, 2014 at 8:44 PM, Marcel Holtmann wrote: >> Hm, I thought that was to fix false negatives. I.e., that some devices >> with, say, DEVTYPE=bluetooth should in fact be treated as regular >> ethernet? > > DEVTYPE=bluetooth and DEVTYPE=wlan are not false negatives. They should be > like

Re: [systemd-devel] [RFC][PATCH] net: set default DEVTYPE for all ethernet based devices

2014-01-05 Thread Marcel Holtmann
Hi Tom, > In systemd's networkd and udevd, we would like to give the administrator a > simple way to filter ethernet devices by their DEVTYPE. In order to avoid > having a special treatment of the case where DEVTYPE=(null), initialize > it to > a default value, "ethernet", in

[systemd-devel] [RFC][PATCH v2] net: set default DEVTYPE for all ethernet based devices

2014-01-05 Thread Tom Gundersen
In systemd's networkd and udevd, we would like to give the administrator a simple way to filter net devices by their DEVTYPE [0][1]. Other software such as ConnMan and NetworkManager uses a similar filtering already. Currently, plain ethernet devices have DEVTYPE=(null). This patch sets the devtyp

Re: [systemd-devel] [RFC][PATCH] net: set default DEVTYPE for all ethernet based devices

2014-01-05 Thread Tom Gundersen
On Sun, Jan 5, 2014 at 3:38 AM, Marcel Holtmann wrote: > Hi Tom, > In systemd's networkd and udevd, we would like to give the administrator a simple way to filter ethernet devices by their DEVTYPE. In order to avoid having a special treatment of the case where DEVTYPE=(null), initia

Re: [systemd-devel] [PATCH] Fix format string mismatch introduced in ab9001a1

2014-01-05 Thread Zbigniew Jędrzejewski-Szmek
On Sun, Jan 05, 2014 at 05:06:50PM +0100, m...@zarb.org wrote: > -asprintf(&b->address, UNIX_USER_BUS_FMT, (unsigned > long) getuid()); > +asprintf(&b->address, UNIX_USER_BUS_FMT, ee); Ooops, thanks, applied. Zbyszek

[systemd-devel] [PATCH] Fix format string mismatch introduced in ab9001a1

2014-01-05 Thread misc
From: Michael Scherer src/libsystemd-bus/sd-bus.c: In function 'sd_bus_open_user': src/libsystemd-bus/sd-bus.c:1104:25: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'long unsigned int' [-Wformat=] asprintf(&b->address, UNIX_USER_BUS_FMT

Re: [systemd-devel] [PATCH 3/4] bus: driverd: don't attempt to remove from empty list

2014-01-05 Thread Kay Sievers
On Sun, Jan 5, 2014 at 11:37 AM, Kay Sievers wrote: > On Sat, Dec 28, 2013 at 8:54 AM, Marc-Antoine Perennou > wrote: >> --- >> src/bus-driverd/bus-driverd.c | 6 +++--- >> 1 file changed, 3 insertions(+), 3 deletions(-) > > Applied. And reverted it again, we need to find out what's really goin

Re: [systemd-devel] [PATCH] journal: Add missing byte order conversions

2014-01-05 Thread Zbigniew Jędrzejewski-Szmek
On Tue, Dec 31, 2013 at 02:37:32PM -0600, George McCollister wrote: > Convert entry_array.items[0] to host byte order prior to passing it to > chain_cache_put(). Applied. > Signed-off-by: George McCollister No need for this. > --- a/src/journal/journal-file.c > +++ b/src/journal/journal-file.c >

Re: [systemd-devel] [PATCH 5/5] strv: multiple cleanups

2014-01-05 Thread Zbigniew Jędrzejewski-Szmek
On Sun, Jan 05, 2014 at 12:52:31PM +0100, Peeters Simon wrote: > 2014/1/5 Zbigniew Jędrzejewski-Szmek : > > Looks great, except for one issue: > > > > On Sat, Jan 04, 2014 at 02:35:27AM +0100, Simon Peeters wrote: > >> @@ -1865,14 +1863,11 @@ finish: > >> watchdog_close(fal

Re: [systemd-devel] [PATCH 3/5] shared: util.c: unify split and split_quoted

2014-01-05 Thread Zbigniew Jędrzejewski-Szmek
Applied. Zbyszek ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] Create a new logind session from a systemd --user unit

2014-01-05 Thread Tom Gundersen
Hi Colin, I realise this thread may be out-of-date by now, so please excuse me if I'm commenting on something which has later changed. On Sun, Aug 4, 2013 at 4:46 PM, Colin Walters wrote: > On Tue, 2013-07-30 at 01:02 +0200, Lennart Poettering wrote: > >> We are working on this bit by bit. If yo

Re: [systemd-devel] [PATCH 5/5] strv: multiple cleanups

2014-01-05 Thread Peeters Simon
2014/1/5 Zbigniew Jędrzejewski-Szmek : > Looks great, except for one issue: > > On Sat, Jan 04, 2014 at 02:35:27AM +0100, Simon Peeters wrote: >> @@ -1865,14 +1863,11 @@ finish: >> watchdog_close(false); >> >> /* Tell the binary how often to ping */