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-09 18:37:30 +0900
commitd5dd12e13467f9761a27ff228ef45d3212b80884 (patch)
tree85240777bc70446a319bddd42eb5ff8846e48c0d
parent5a253ba10bddf14fdc5e598aa8e6621ab21a40f8 (diff)
downloadconnman-d5dd12e13467f9761a27ff228ef45d3212b80884.tar.gz
connman-d5dd12e13467f9761a27ff228ef45d3212b80884.tar.bz2
connman-d5dd12e13467f9761a27ff228ef45d3212b80884.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 b03aae5e..3cb5a8f4 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
@@ -162,6 +163,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
@@ -242,6 +248,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
@@ -276,6 +283,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
@@ -374,3 +382,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>