[systemd-commits] 2 commits - src/network units/systemd-machined.service.in

Lennart Poettering lennart at kemper.freedesktop.org
Thu Jun 19 11:41:07 PDT 2014


 src/network/networkd-link.c       |    2 +-
 units/systemd-machined.service.in |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit ae941762628441fb3d624a57eee8d1a5c15096cf
Author: Steven Noonan <steven at uplinklabs.net>
Date:   Thu Jun 19 10:41:57 2014 -0700

    networkd: fix refcounting with UseMTU=yes
    
    The link was unintentionally being unreferenced instead of referenced for the
    MTU setup.

diff --git a/src/network/networkd-link.c b/src/network/networkd-link.c
index 5ab7aa7..664cc07 100644
--- a/src/network/networkd-link.c
+++ b/src/network/networkd-link.c
@@ -871,7 +871,7 @@ static int link_set_mtu(Link *link, uint32_t mtu) {
                 return r;
         }
 
-        link_unref(link);
+        link_ref(link);
 
         return 0;
 }

commit a55954297dade7b432fd3a4f328f23261621ff79
Author: Lennart Poettering <lennart at poettering.net>
Date:   Thu Jun 19 19:53:16 2014 +0200

    units: add missing caps so that GetAddresses() can work

diff --git a/units/systemd-machined.service.in b/units/systemd-machined.service.in
index 3ae0847..5a890b5 100644
--- a/units/systemd-machined.service.in
+++ b/units/systemd-machined.service.in
@@ -15,7 +15,7 @@ After=machine.slice
 [Service]
 ExecStart=@rootlibexecdir@/systemd-machined
 BusName=org.freedesktop.machine1
-CapabilityBoundingSet=CAP_KILL
+CapabilityBoundingSet=CAP_KILL CAP_SYS_PTRACE CAP_SYS_ADMIN CAP_SETGID
 WatchdogSec=1min
 PrivateTmp=yes
 PrivateDevices=yes



More information about the systemd-commits mailing list