Change-Id: I3192da5970a0e3089893b0b7e06a8c07cb207182
Signed-off-by: Avichal <avichal.a@samsung.com>
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/sensor
FILES_MATCHING PATTERN "*.h"
)
+INSTALL(
+ FILES sensor.conf DESTINATION /etc/dbus-1/system.d
+)
%{_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
--- /dev/null
+<?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>
+