summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhyunuktak <hyunuk.tak@samsung.com>2016-08-30 05:08:16 (GMT)
committerSeonah Moon <seonah1.moon@samsung.com>2016-11-11 09:15:27 (GMT)
commit04bfa23db4a121adcd17c35bb1d9378cebc66b51 (patch)
tree08ff5d3aaa04a187b6885e5aee878f160f1a774a
parent57b34746c4e5a12cd58e03aa9739621ca296f79f (diff)
downloadconnman-04bfa23db4a121adcd17c35bb1d9378cebc66b51.zip
connman-04bfa23db4a121adcd17c35bb1d9378cebc66b51.tar.gz
connman-04bfa23db4a121adcd17c35bb1d9378cebc66b51.tar.bz2
Change attribute for connmand and set uid/gid into servicesubmit/tizen_3.0/20161115.065431submit/tizen_3.0/20161114.042815refs/changes/60/97160/1
Change-Id: I7c89d697792aff2521a31d1772e696c19313fc44 Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
-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 b37b135..0f2e5fe 100755
--- a/packaging/connman.spec
+++ b/packaging/connman.spec
@@ -208,14 +208,14 @@ systemctl daemon-reload
%files
%manifest connman.manifest
-%attr(500,root,root) %{_sbindir}/*
+%attr(755,root,root) %{_sbindir}/*
%attr(500,root,root) %{_bindir}/connmanctl
-%attr(600,root,root) /%{_localstatedir}/lib/connman/settings
+%attr(600,network_fw,network_fw) /%{_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,root,root) %{_sysconfdir}/connman/main.conf
+%attr(644,network_fw,network_fw) %{_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 3bc442a..003b110 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 6cc59cb..eb75ae4 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