Add dbus policy for org.tizen.system.BootingDone 34/212534/2 accepted/tizen/unified/20190828.011033 submit/tizen/20190827.025238 submit/tizen/20190827.044306
authorHyotaek Shim <hyotaek.shim@samsung.com>
Thu, 22 Aug 2019 11:46:11 +0000 (20:46 +0900)
committerHyotaek Shim <hyotaek.shim@samsung.com>
Thu, 22 Aug 2019 11:56:54 +0000 (20:56 +0900)
Change-Id: I8f0bd7887b5f1cbd7637c00e03240e4d5e09e4c7
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
packaging/org.tizen.system.conf [new file with mode: 0644]
packaging/systemd.spec

diff --git a/packaging/org.tizen.system.conf b/packaging/org.tizen.system.conf
new file mode 100644 (file)
index 0000000..ca6b54b
--- /dev/null
@@ -0,0 +1,16 @@
+<!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="system_fw">
+               <allow send_path="/org/tizen/system"
+                       send_interface="org.tizen.system.Booting"
+                       send_member="BootingDone"
+                       send_type="signal"/>
+       </policy>
+       <policy context="default">
+               <deny send_path="/org/tizen/system"
+                       send_interface="org.tizen.system.Booting"
+                       send_member="BootingDone"
+                       send_type="signal"/>
+       </policy>
+</busconfig>
index 01946de..ddb1afb 100644 (file)
@@ -27,6 +27,7 @@ Source2:        %{name}-rpmlintrc
 Source3:        test-runner.c
 Source4:        wait-default-target.sh
 Source5:        wait-delayed-target.sh
+Source6:        org.tizen.system.conf
 Source1001:     systemd.manifest
 BuildRequires:  gperf
 BuildRequires:  intltool >= 0.40.0
@@ -309,7 +310,7 @@ ln -sf ./libsystemd.pc %{buildroot}%{_libdir}/pkgconfig/libsystemd-login.pc
 # Delayed target
 install -m 0755 %{SOURCE4} %{buildroot}%{_bindir}/wait-default-target.sh
 install -m 0755 %{SOURCE5} %{buildroot}%{_bindir}/wait-delayed-target.sh
-
+install -m 0755 %{SOURCE6} %{buildroot}%{_sysconfdir}/dbus-1/system.d/org.tizen.system.conf
 
 # end of install
 %pre
@@ -545,6 +546,7 @@ fi
 %{_prefix}/lib/systemd/user/default.target.wants/user-default-target-done.service
 %{_prefix}/lib/systemd/user/user-delayed-target-done.service
 %{_prefix}/lib/systemd/user/delayed.target.wants/user-delayed-target-done.service
+%{_sysconfdir}/dbus-1/system.d/org.tizen.system.conf
 
 %{_prefix}/lib/systemd/libsystemd-shared-231.so
 %{_prefix}/lib/systemd/libsystemd-shared.so