From 1877906191a0d441a2c3146d3863c2e85ee3ec98 Mon Sep 17 00:00:00 2001 From: hyunuktak Date: Mon, 4 Jul 2016 11:27:23 +0900 Subject: [PATCH] Removed cap for mac override and change the label for resolv configuration Change-Id: I04f15f895c189f94cd1e0828c1cac2b33dfee5eb Signed-off-by: hyunuktak --- packaging/net-config.spec | 3 ++- resources/usr/lib/systemd/system/net-config.service | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/packaging/net-config.spec b/packaging/net-config.spec index 44c2e85..f86e329 100755 --- a/packaging/net-config.spec +++ b/packaging/net-config.spec @@ -1,6 +1,6 @@ Name: net-config Summary: TIZEN Network Configuration service -Version: 1.1.80 +Version: 1.1.81 Release: 2 Group: System/Network License: Apache-2.0 @@ -125,6 +125,7 @@ mkdir -p %{buildroot}%{_datadir}/license cp LICENSE %{buildroot}%{_datadir}/license/net-config %post +chsmack -a 'System::Shared' %{_sysconfdir}/resolv.conf #Network logs mkdir -p /opt/usr/data/network diff --git a/resources/usr/lib/systemd/system/net-config.service b/resources/usr/lib/systemd/system/net-config.service index 8ef8b66..000ca9a 100755 --- a/resources/usr/lib/systemd/system/net-config.service +++ b/resources/usr/lib/systemd/system/net-config.service @@ -9,6 +9,7 @@ ExecStartPre=-/usr/sbin/net-config.service ExecStart=/usr/sbin/net-config Restart=always CapabilityBoundingSet=~CAP_MAC_ADMIN +CapabilityBoundingSet=~CAP_MAC_OVERRIDE [Install] WantedBy=multi-user.target -- 2.34.1