Need default deny policy for internal interface
Change-Id: If7ecc83424efb736f6d30a0ac43a0a510bf51437
TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${bluez_hal_pkgs_LDFLAGS} "-ldl")
INSTALL(TARGETS ${PROJECT_NAME} DESTINATION ${LIBDIR} COMPONENT RuntimeLibraries)
+INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/bluetooth-frwk-gap-agent.conf DESTINATION /etc/dbus-1/system.d)
--- /dev/null
+<!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 send_destination="org.projectx.bt" send_interface="org.bluez.Agent1"/>
+ </policy>
+ <policy group="network_fw">
+ <allow send_destination="org.projectx.bt" send_interface="org.bluez.Agent1"/>
+ </policy>
+ <policy context="default">
+ <deny send_destination="org.projectx.bt" send_interface="org.bluez.Agent1"/>
+ </policy>
+</busconfig>
%files oal
%manifest %{name}.manifest
%{_libdir}/libbt-oal.so*
+%{_sysconfdir}/dbus-1/system.d/bluetooth-frwk-gap-agent.conf
%if %{bt_bluez_hal} == ENABLED
%manifest %{name}.manifest