connmand_DEPENDENCIES = connman.ver
-CLEANFILES = connman.ver connman.exp 92-connman.rules
+CLEANFILES = connman.ver connman.exp connman.conf 92-connman.rules
statedir = $(localstatedir)/run/connman
-DPLUGINDIR=\""$(plugindir)"\"
INCLUDES = -I$(top_builddir)/include
-EXTRA_DIST = $(dbus_DATA) connman.rules
+EXTRA_DIST = connman-dbus.conf connman-polkit.conf connman.rules
MAINTAINERCLEANFILES = Makefile.in
cat $< | sed -e "s/\(.*\)/\1;/" >> $@
echo "local: *; };" >> $@
+connman.conf: connman-dbus.conf connman-polkit.conf
+if POLKIT
+ cp $(top_srcdir)/src/connman-polkit.conf $@
+else
+ cp $(top_srcdir)/src/connman-dbus.conf $@
+endif
+
92-connman.rules: connman.rules
cp $< $@
<allow send_destination="org.moblin.connman"/>
</policy>
<policy context="default">
- <!-- use "allow" with enabled PolicyKit support -->
<deny send_destination="org.moblin.connman"/>
</policy>
</busconfig>
--- /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 own="org.moblin.connman"/>
+ <allow send_interface="org.moblin.connman.Agent"/>
+ </policy>
+ <policy context="default">
+ <allow send_destination="org.moblin.connman"/>
+ </policy>
+</busconfig>