From e4df389446acd53c76679c2d89159d5ce94085ae Mon Sep 17 00:00:00 2001 From: cheoleun moon Date: Tue, 9 Nov 2021 16:56:39 +0900 Subject: [PATCH] Add dbus configuration for robot profile Change-Id: I33f8eb0d63bf304b1081c4e811b6939179584fa5 --- packaging/net-config.spec | 5 + .../etc/dbus-1/system.d/net-config-robot.conf | 121 +++++++++++++++++++++ 2 files changed, 126 insertions(+) create mode 100755 resources/etc/dbus-1/system.d/net-config-robot.conf diff --git a/packaging/net-config.spec b/packaging/net-config.spec index ad4cf82..c29df82 100755 --- a/packaging/net-config.spec +++ b/packaging/net-config.spec @@ -186,6 +186,7 @@ ln -s %{TZ_SYS_ETC}/resolv.conf %{buildroot}%{_sysconfdir}/resolv.conf #DBus DAC (net-config.manifest enables DBus SMACK) mkdir -p %{buildroot}%{_sysconfdir}/dbus-1/system.d cp resources/etc/dbus-1/system.d/net-config.conf %{buildroot}%{_sysconfdir}/dbus-1/system.d/net-config.conf +cp resources/etc/dbus-1/system.d/net-config-robot.conf %{buildroot}%{_sysconfdir}/dbus-1/system.d/net-config-robot.conf #log dump mkdir -p %{buildroot}/opt/etc/dump.d/module.d/ @@ -236,6 +237,7 @@ chown network_fw:network_fw /opt/usr/data/network %attr(644,root,root) %{_datadir}/dbus-1/system-services/* #DBus DAC %attr(644,root,root) %{_sysconfdir}/dbus-1/system.d/* +%exclude %{_sysconfdir}/dbus-1/system.d/net-config-robot.conf %attr(644,root,root) /usr/lib/tmpfiles.d/security-network-config.conf %attr(644,root,root) %{_unitdir}/net-config.service %attr(644,root,root) %{_unitdir}/multi-user.target.wants/net-config.service @@ -269,10 +271,13 @@ mv net-config.wearable net-config #### robot profile #### %post profile_robot mv /var/lib/net-config/settings-robot /var/lib/net-config/settings +mv %{_sysconfdir}/dbus-1/system.d/net-config-robot.conf %{_sysconfdir}/dbus-1/system.d/net-config.conf %files profile_robot %manifest net-config.manifest %attr(644,root,root) /var/lib/net-config/settings-robot +%attr(644,root,root) %{_sysconfdir}/dbus-1/system.d/net-config-robot.conf + #### plugin #### %files plugin-headed diff --git a/resources/etc/dbus-1/system.d/net-config-robot.conf b/resources/etc/dbus-1/system.d/net-config-robot.conf new file mode 100755 index 0000000..7c497e2 --- /dev/null +++ b/resources/etc/dbus-1/system.d/net-config-robot.conf @@ -0,0 +1,121 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- 2.7.4