summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcheoleun moon <chleun.moon@samsung.com>2021-11-09 16:56:05 +0900
committercheoleun moon <chleun.moon@samsung.com>2021-11-10 19:00:35 +0900
commite4180e274c1ed3bc45cb961f083ccf6db3889a1b (patch)
tree41f84c0751bd45707ac7ebcbf76cfe393de9478f
parentb7d1613af2e2d8b341e79fc72fdb999c1f5081e2 (diff)
downloadconnman-e4180e274c1ed3bc45cb961f083ccf6db3889a1b.tar.gz
connman-e4180e274c1ed3bc45cb961f083ccf6db3889a1b.tar.bz2
connman-e4180e274c1ed3bc45cb961f083ccf6db3889a1b.zip
Add dbus configuration for robot profile
Change-Id: If05b36fbbbb58a428d9c5b2c01da8a4d4892e3e5
-rw-r--r--packaging/connman.spec15
-rw-r--r--src/connman-robot.conf44
2 files changed, 59 insertions, 0 deletions
diff --git a/packaging/connman.spec b/packaging/connman.spec
index bac461db..cb382996 100644
--- a/packaging/connman.spec
+++ b/packaging/connman.spec
@@ -43,6 +43,7 @@ Requires: security-config
Provides: %{name}-profile_common = %{version}-%{release}
Provides: %{name}-profile_mobile = %{version}-%{release}
Provides: %{name}-profile_wearable = %{version}-%{release}
+Provides: %{name}-profile_robot = %{version}-%{release}
%description
Connection Manager provides a daemon for managing Internet connections
@@ -161,6 +162,11 @@ Requires: %{name}-extension-bpf
%description extension-bpf-devel
Header files and development files for BPF support
+%package profile_robot
+Summary: connman extension for robot profile
+Requires: %{name} = %{version}-%{release}
+%description profile_robot
+connman extension for Tizen robot profile
%prep
%setup -q
@@ -241,6 +247,7 @@ cp src/main.conf %{buildroot}/etc/connman/main.conf
rm %{buildroot}%{_sysconfdir}/dbus-1/system.d/*.conf
mkdir -p %{buildroot}%{_sysconfdir}/dbus-1/system.d/
cp src/connman.conf %{buildroot}%{_sysconfdir}/dbus-1/system.d/
+cp src/connman-robot.conf %{buildroot}%{_sysconfdir}/dbus-1/system.d/
%if %{with connman_vpnd}
cp vpn/vpn-dbus.conf %{buildroot}%{_sysconfdir}/dbus-1/system.d/connman-vpn-dbus.conf
@@ -275,6 +282,7 @@ systemctl daemon-reload
%attr(600,network_fw,network_fw) /%{_localstatedir}/lib/connman/settings
%attr(644,root,root) %{_datadir}/dbus-1/system-services/net.connman.service
%attr(644,root,root) %{_sysconfdir}/dbus-1/system.d/*
+%exclude %{_sysconfdir}/dbus-1/system.d/connman-robot.conf
%attr(644,network_fw,network_fw) %{_sysconfdir}/connman/main.conf
%attr(644,root,root) %{_sysconfdir}/dbus-1/system.d/*.conf
%attr(644,root,root) %{_unitdir}/connman.service
@@ -373,3 +381,10 @@ ln -s %{_libdir}/libbpf.so.0.2.0 %{_libdir}/libbpf.so
%{_includedir}/bpf/*
%license COPYING
%license COPYING.LGPLv2
+
+%post profile_robot
+mv %{_sysconfdir}/dbus-1/system.d/connman-robot.conf %{_sysconfdir}/dbus-1/system.d/connman.conf
+
+%files profile_robot
+%manifest %{name}.manifest
+%attr(644,root,root) %{_sysconfdir}/dbus-1/system.d/connman-robot.conf
diff --git a/src/connman-robot.conf b/src/connman-robot.conf
new file mode 100644
index 00000000..b089f404
--- /dev/null
+++ b/src/connman-robot.conf
@@ -0,0 +1,44 @@
+<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
+ "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
+<busconfig>
+ <policy user="root">
+ <allow own="net.connman"/>
+ <allow send_destination="net.connman"/>
+ </policy>
+ <policy user="network_fw">
+ <allow own="net.connman"/>
+ <allow send_destination="net.connman"/>
+ </policy>
+ <policy context="default">
+ <deny own="net.connman"/>
+ <deny send_destination="net.connman"/>
+ <allow send_destination="net.connman" send_type="signal"/>
+ <allow send_destination="net.connman" send_interface="net.connman.Technology" send_member="GetScanState" />
+ <allow send_destination="net.connman" send_interface="net.connman.Technology" send_member="Get5GhzSupported" />
+ <allow send_destination="net.connman" send_interface="net.connman.Technology" send_member="GetMaxScanSsid" />
+
+ <allow send_destination="net.connman" send_interface="net.connman.Manager" send_member="GetTechnologies" />
+ <allow send_destination="net.connman" send_interface="net.connman.Manager" send_member="GetProperties" />
+ <allow send_destination="net.connman" send_interface="net.connman.Manager" send_member="GetServices" />
+ <allow send_destination="net.connman" send_interface="net.connman.Manager" send_member="GetDefaultService" />
+ <allow send_destination="net.connman" send_interface="net.connman.Manager" send_member="GetConnectedService" />
+ <allow send_destination="net.connman" send_interface="net.connman.Manager" send_member="GetMeshPeers" />
+ <allow send_destination="net.connman" send_interface="net.connman.Manager" send_member="GetConnectedMeshPeers" />
+ <allow send_destination="net.connman" send_interface="net.connman.Manager" send_member="GetDisconnectedMeshPeers" />
+ <allow send_destination="net.connman" send_interface="net.connman.Manager" send_member="MeshAddPeer" />
+ <allow send_destination="net.connman" send_interface="net.connman.Manager" send_member="MeshRemovePeer" />
+ <allow send_destination="net.connman" send_interface="net.connman.Service" send_member="Connect" />
+ <allow send_destination="net.connman" send_interface="net.connman.Service" send_member="Disconnect" />
+ <allow send_destination="net.connman" send_interface="net.connman.Service" send_member="SetProperty" />
+ <allow send_destination="net.connman" send_interface="net.connman.Service" send_member="GetProperties" />
+ <allow send_destination="net.connman" send_interface="net.connman.Service" send_member="Remove" />
+ <allow send_destination="net.connman" send_interface="net.connman.Service" send_member="PropertyChanged" />
+ <allow send_destination="net.connman" send_interface="net.connman.Technology" send_member="Scan" />
+ <allow send_destination="net.connman" send_interface="net.connman.Technology" send_member="SpecificScan" />
+ <allow send_destination="net.connman" send_interface="net.connman.Technology" send_member="ScanDevice" />
+ <allow send_destination="net.connman" send_interface="net.connman.Technology" send_member="SetDevicePower" />
+ <allow send_destination="net.connman" send_interface="net.connman.Technology" send_member="SetBSSID" />
+ <allow send_destination="net.connman" send_interface="net.connman.Manager" send_member="GetInterfaces" />
+ <allow send_destination="net.connman" send_interface="net.connman.Technology" send_member="MeshCommands" />
+ </policy>
+</busconfig>