From: Daniel Wagner <[email protected]> --- Makefile.am | 6 ++++++ elect/elect.conf | 23 +++++++++++++++++++++++ 2 files changed, 29 insertions(+), 0 deletions(-) create mode 100644 elect/elect.conf
diff --git a/Makefile.am b/Makefile.am index 38e5d90..70ea5de 100644 --- a/Makefile.am +++ b/Makefile.am @@ -657,6 +657,12 @@ elect_electd_SOURCES = $(gdbus_sources) \ elect_electd_LDADD = $(builtin_libadd) @GLIB_LIBS@ @DBUS_LIBS@ @CAPNG_LIBS@ -ldl +if DATAFILES + +dist_dbusconf_DATA += elect/elect.conf + +endif + endif noinst_PROGRAMS += gatchat/gsmdial gatchat/test-server gatchat/test-qcdm diff --git a/elect/elect.conf b/elect/elect.conf new file mode 100644 index 0000000..548ffe8 --- /dev/null +++ b/elect/elect.conf @@ -0,0 +1,23 @@ +<!-- This configuration file specifies the required security policies + for oFono elect (DUN) daemon to work. --> + +<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN" + "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd"> +<busconfig> + + <!-- ../system.conf have denied everything, so we just punch some holes --> + + <policy user="root"> + <allow own="org.ofono.elect"/> + <allow send_destination="org.ofono.elect"/> + </policy> + + <policy at_console="true"> + <allow send_destination="org.ofono.elect"/> + </policy> + + <policy context="default"> + <deny send_destination="org.ofono.elect"/> + </policy> + +</busconfig> -- 1.7.8.110.g4cb5d1 _______________________________________________ ofono mailing list [email protected] http://lists.ofono.org/listinfo/ofono
