Re: [systemd-devel] [PATCH] build: configure option to disable hibernation

2014-09-08 Thread Tom Gundersen
On Sun, Sep 7, 2014 at 11:32 PM, Ivan Shapovalov wrote: > On Tuesday 02 September 2014 at 12:31:49, Umut Tezduyar Lindskog wrote: >> --- >> Makefile.am | 52 >> configure.ac |6 ++ >> 2 files changed, 38 insertions(+), 20 deletions(-

Re: [systemd-devel] Log unit's name instead of unit's description?

2014-09-08 Thread Colin Guthrie
Reindl Harald wrote on 06/09/14 00:59: > > Am 05.09.2014 um 19:30 schrieb Mantas Mikulėnas: >> On Fri, Sep 5, 2014 at 8:22 PM, Jakub Klinkovský wrote: >>> >>> What is the reason behind logging unit's description? Consider the following >>> journal message (from `journalctl -b`): >>> >>> systemd

Re: [systemd-devel] Log unit's name instead of unit's description?

2014-09-08 Thread Reindl Harald
Am 08.09.2014 um 11:21 schrieb Colin Guthrie: > Reindl Harald wrote on 06/09/14 00:59: >> >> Am 05.09.2014 um 19:30 schrieb Mantas Mikulėnas: >>> On Fri, Sep 5, 2014 at 8:22 PM, Jakub Klinkovský wrote: What is the reason behind logging unit's description? Consider the following >

Re: [systemd-devel] Please help: systemd "special targets" activaton order for fast boot

2014-09-08 Thread Viswambharan, Vibin (V.)
Hi Alison, thanks to this hidden gem of reference, and with your pointers i was able to a pretty nice job of reordering the units and dependencies to pull ahead the early boot target. I agree after spending a few hours, i could bring up my functional ui with significant improvements. I have some

[systemd-devel] [PATCH] networkd: allow specification of DHCP route metric

2014-09-08 Thread Angus Gibson
This lets the routing metric for links to be specified per-network, still defaulting to DHCP_ROUTE_METRIC (1024) if unspecified. Hopefully this helps with multiple interfaces configured via DHCP. --- man/systemd.network.xml | 6 ++ src/network/networkd-dhcp4.c | 6

Re: [systemd-devel] Log unit's name instead of unit's description?

2014-09-08 Thread Simon McVittie
On 05/09/14 18:22, Jakub Klinkovský wrote: > What is the reason behind logging unit's description? Consider the > following journal message (from `journalctl -b`): > > systemd[1]: Starting A secure, fast, compliant and very flexible > web-server... As a data point, Debian's init scripts have trad

Re: [systemd-devel] [PATCH] networkd: add preferred source to dhcp4 gateway route

2014-09-08 Thread Tom Gundersen
Applied. Thanks! Tom On Fri, Sep 5, 2014 at 11:56 AM, Emil Renner Berthing wrote: > This makes DHCPv4 and IPv4LL coexist peacefully. > --- > src/network/networkd-dhcp4.c | 11 +++ > src/network/networkd-route.c | 22 ++ > src/network/networkd.h | 2 ++ > 3 fil

Re: [systemd-devel] [PATCH] networkd: allow specification of DHCP route metric

2014-09-08 Thread Tom Gundersen
Applied. Thanks! Tom On Mon, Sep 8, 2014 at 12:26 PM, Angus Gibson wrote: > This lets the routing metric for links to be specified per-network, > still defaulting to DHCP_ROUTE_METRIC (1024) if unspecified. Hopefully > this helps with multiple interfaces configured via DHCP. > > --- > man/syste

[systemd-devel] [PATCH 1/2] test: update policy tests to handle user namespaces

2014-09-08 Thread Djalal Harouni
Upstream kernels allow unprivileged users to create user namespaces and change their uid/gid. These patches update kdbus policy logic to handle this case and improve our current checks across user namespaces. So this patch adds: * kdbus_test_waitpid() to get exit code of childs. * kdbus_clone_us

[systemd-devel] [PATCH 2/2] policy: make policy checks work across user namespaces

2014-09-08 Thread Djalal Harouni
Use the global kuid_t and kgid_t to store uid/gid values, this way we our policy checks will work across user namespaces. Note that currently we ignore that the user is privileged in its own namespaces and the policy access kuid_t and kgid_t were mapped into that namespace. If this is requested we

Re: [systemd-devel] [PATCH 2/2] policy: make policy checks work across user namespaces

2014-09-08 Thread Daniel Mack
On 09/08/2014 03:18 PM, Djalal Harouni wrote: > * This is the internal version of struct kdbus_policy_db_access. > @@ -51,7 +52,8 @@ struct kdbus_policy_db_cache_entry { > struct kdbus_policy_db_entry_access { > u8 type;/* USER, GROUP, WORLD */ > u8 access; /* OWN, TALK,

Re: [systemd-devel] [PATCH 1/2] test: update policy tests to handle user namespaces

2014-09-08 Thread Daniel Mack
On 09/08/2014 03:18 PM, Djalal Harouni wrote: > Upstream kernels allow unprivileged users to create user namespaces > and change their uid/gid. > > These patches update kdbus policy logic to handle this case and > improve our current checks across user namespaces. > > So this patch adds: > > * k

[systemd-devel] [PATCH v5] socket: introduce SELinuxContextFromNet option

2014-09-08 Thread Michal Sekletar
This makes possible to spawn service instances triggered by socket with MLS/MCS SELinux labels which are created based on information provided by connected peer. Implementation of label_get_child_mls_label derived from xinetd. Reviewed-by: Paul Moore --- Changes in v5: * removed unneede

Re: [systemd-devel] [PATCH 2/2] policy: make policy checks work across user namespaces

2014-09-08 Thread Djalal Harouni
On Mon, Sep 08, 2014 at 03:27:42PM +0200, Daniel Mack wrote: > On 09/08/2014 03:18 PM, Djalal Harouni wrote: > > * This is the internal version of struct kdbus_policy_db_access. > > @@ -51,7 +52,8 @@ struct kdbus_policy_db_cache_entry { > > struct kdbus_policy_db_entry_access { > > u8 type;

Re: [systemd-devel] [PATCH 1/2] test: update policy tests to handle user namespaces

2014-09-08 Thread Djalal Harouni
On Mon, Sep 08, 2014 at 03:32:21PM +0200, Daniel Mack wrote: > On 09/08/2014 03:18 PM, Djalal Harouni wrote: > > Upstream kernels allow unprivileged users to create user namespaces > > and change their uid/gid. > > > > These patches update kdbus policy logic to handle this case and > > improve our

[systemd-devel] User systemd unit files

2014-09-08 Thread Chris Morgan
Hello. We have a build environment that we use to build our software for desktop Linux and we are currently using Yocto to build for an embedded target. I'm looking for a way for developers to use the systemd unit files for our services out of their user owned build directory during development s

Re: [systemd-devel] User systemd unit files

2014-09-08 Thread Mantas Mikulėnas
On Mon, Sep 8, 2014 at 9:27 PM, Chris Morgan wrote: > Hello. > > We have a build environment that we use to build our software for > desktop Linux and we are currently using Yocto to build for an > embedded target. > > I'm looking for a way for developers to use the systemd unit files for > our se

Re: [systemd-devel] Suppressing automounting

2014-09-08 Thread Dale R. Worley
> From: Simon McVittie > > In my "Store.mount" file, I see no indication of an executable which > > implements the unit. > > I think it's always mount(8), which has its own extension mechanism to > dispatch per-filesystem if necessary (e.g. mount.cifs). What I was thinking of is, what is the pr

Re: [systemd-devel] User systemd unit files

2014-09-08 Thread Chris Morgan
On Mon, Sep 8, 2014 at 3:30 PM, Mantas Mikulėnas wrote: > On Mon, Sep 8, 2014 at 9:27 PM, Chris Morgan wrote: >> Hello. >> >> We have a build environment that we use to build our software for >> desktop Linux and we are currently using Yocto to build for an >> embedded target. >> >> I'm looking f

Re: [systemd-devel] Suppressing automounting

2014-09-08 Thread Mantas Mikulėnas
On Mon, Sep 8, 2014 at 10:32 PM, Dale R. Worley wrote: >> From: Simon McVittie > >> > In my "Store.mount" file, I see no indication of an executable which >> > implements the unit. >> >> I think it's always mount(8), which has its own extension mechanism to >> dispatch per-filesystem if necessary

[systemd-devel] [PATCH] rules: net-setup-link - remove stray linebreak

2014-09-08 Thread Mantas Mikulėnas
If not backslash-escaped, it splits the rule in two. --- rules/80-net-setup-link.rules | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rules/80-net-setup-link.rules b/rules/80-net-setup-link.rules index 27c43b9..4207694 100644 --- a/rules/80-net-setup-link.rules +++ b/rules/8

Re: [systemd-devel] [PATCH] rules: net-setup-link - remove stray linebreak

2014-09-08 Thread Tom Gundersen
Applied. Thanks! Tom On Mon, Sep 8, 2014 at 9:53 PM, Mantas Mikulėnas wrote: > If not backslash-escaped, it splits the rule in two. > --- > rules/80-net-setup-link.rules | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/rules/80-net-setup-link.rules b/rules/80-net-setup

[systemd-devel] [PATCH] build-sys: make hibernation support configure option also handle hybrid-sleep; fix indentation

2014-09-08 Thread Ivan Shapovalov
--- The patch by Umut did miss at least hybrid-sleep -- it involves hibernation as well (hybrid sleep is a hibernation followed by S3 rather than S4 powerdown). Also, it messed up indentation a bit (Makefile.am seems to use tabs), which I fixed as well. And I wonder, maybe it makes sense to condi