Adding sensord dbus policy 23/205723/5 accepted/tizen/unified/20190530.043033 submit/tizen/20190522.102101
authorAvichal <avichal.a@samsung.com>
Wed, 8 May 2019 13:08:46 +0000 (18:38 +0530)
committerAvichal <avichal.a@samsung.com>
Tue, 21 May 2019 10:22:48 +0000 (15:52 +0530)
Change-Id: I3192da5970a0e3089893b0b7e06a8c07cb207182
Signed-off-by: Avichal <avichal.a@samsung.com>
CMakeLists.txt
packaging/sensord.spec
sensor.conf [new file with mode: 0644]

index 45e0775..d8e4b05 100644 (file)
@@ -29,3 +29,6 @@ INSTALL(
        DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/sensor
        FILES_MATCHING PATTERN "*.h"
 )
+INSTALL( 
+       FILES sensor.conf DESTINATION /etc/dbus-1/system.d
+)
index 2cf492e..5448001 100644 (file)
@@ -110,6 +110,7 @@ echo "You need to reinstall %{name}-dummy to keep using the APIs after uninstall
 %{_unitdir}/sensord.service
 %{_unitdir}/sensord.socket
 %{_unitdir}/multi-user.target.wants/sensord.service
+%{_sysconfdir}/dbus-1/system.d/sensor.conf
 %{_unitdir}/sockets.target.wants/sensord.socket
 %license LICENSE.APLv2
 
diff --git a/sensor.conf b/sensor.conf
new file mode 100644 (file)
index 0000000..efb4dcb
--- /dev/null
@@ -0,0 +1,22 @@
+<?xml version="1.0"?>
+<!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="org.tizen.system.sensord"/>
+<allow send_destination="org.tizen.system.sensord"/>
+</policy>
+
+<policy group="sensor">
+<allow own="org.tizen.system.sensord"/>
+<allow send_destination="org.tizen.system.sensord"/>
+</policy>
+
+<policy context="default">
+<deny own="org.tizen.system.sensord"/>
+<deny send_destination="org.tizen.system.sensord"/>
+</policy>
+
+</busconfig>
+