summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorseonah moon <seonah1.moon@samsung.com>2016-11-15 17:42:25 -0800
committerchleun.moon <chleun.moon@samsung.com>2016-11-17 15:09:42 +0900
commit95b786e003ae7eea2062fcc1bcdbd9d984144d70 (patch)
tree29fecde816acbbf01f35fc633866014048eebbce
parent3c39ad0c20dd8163ad19c63395531028158e110c (diff)
downloadconnman-95b786e003ae7eea2062fcc1bcdbd9d984144d70.tar.gz
connman-95b786e003ae7eea2062fcc1bcdbd9d984144d70.tar.bz2
connman-95b786e003ae7eea2062fcc1bcdbd9d984144d70.zip
This reverts commit 04bfa23db4a121adcd17c35bb1d9378cebc66b51. Change-Id: I1af9c34aed1496757f20cf1dc0411afc744bc990
-rwxr-xr-xpackaging/connman.spec6
-rwxr-xr-xsrc/connman.service.in4
-rwxr-xr-xvpn/connman-vpn.service.in4
3 files changed, 7 insertions, 7 deletions
diff --git a/packaging/connman.spec b/packaging/connman.spec
index 0f2e5fee..b37b1358 100755
--- a/packaging/connman.spec
+++ b/packaging/connman.spec
@@ -208,14 +208,14 @@ systemctl daemon-reload
%files
%manifest connman.manifest
-%attr(755,root,root) %{_sbindir}/*
+%attr(500,root,root) %{_sbindir}/*
%attr(500,root,root) %{_bindir}/connmanctl
-%attr(600,network_fw,network_fw) /%{_localstatedir}/lib/connman/settings
+%attr(600,root,root) /%{_localstatedir}/lib/connman/settings
#%{_libdir}/connman/plugins/*.so
%attr(644,root,root) %{_datadir}/dbus-1/system-services/*
#%{_datadir}/dbus-1/services/*
%{_sysconfdir}/dbus-1/system.d/*
-%attr(644,network_fw,network_fw) %{_sysconfdir}/connman/main.conf
+%attr(644,root,root) %{_sysconfdir}/connman/main.conf
%{_sysconfdir}/dbus-1/system.d/*.conf
%attr(644,root,root) %{_libdir}/systemd/system/connman.service
%attr(644,root,root) %{_libdir}/systemd/system/multi-user.target.wants/connman.service
diff --git a/src/connman.service.in b/src/connman.service.in
index 003b110e..3bc442a5 100755
--- a/src/connman.service.in
+++ b/src/connman.service.in
@@ -9,9 +9,9 @@ BusName=net.connman
Restart=on-failure
SmackProcessLabel=System
ExecStart=@sbindir@/connmand -n --noplugin vpn
-User=network_fw
-Group=network_fw
StandardOutput=null
+CapabilityBoundingSet=~CAP_MAC_ADMIN
+CapabilityBoundingSet=~CAP_MAC_OVERRIDE
[Install]
WantedBy=multi-user.target
diff --git a/vpn/connman-vpn.service.in b/vpn/connman-vpn.service.in
index eb75ae49..6cc59cbc 100755
--- a/vpn/connman-vpn.service.in
+++ b/vpn/connman-vpn.service.in
@@ -8,9 +8,9 @@ Type=dbus
BusName=net.connman.vpn
SmackProcessLabel=System
ExecStart=@sbindir@/connman-vpnd -n
-User=network_fw
-Group=network_fw
StandardOutput=null
+CapabilityBoundingSet=~CAP_MAC_ADMIN
+CapabilityBoundingSet=~CAP_MAC_OVERRIDE
[Install]
WantedBy=multi-user.target