diff options
author | Dominique Leuenberger <dimstar@opensuse.org> | 2013-09-04 19:56:49 +0200 |
---|---|---|
committer | Zeeshan Ali (Khattak) <zeeshanak@gnome.org> | 2013-09-05 23:36:13 +0300 |
commit | cb074265bbf0274990b5cc2da084c21d34a38853 (patch) | |
tree | b650ab1d44a07afdeb55add6c4f8eadfc5e3aa1e /data/org.freedesktop.GeoClue2.conf.in | |
parent | 78f0b11753037c6c258e1a411df0e731a8a51134 (diff) | |
download | geoclue-cb074265bbf0274990b5cc2da084c21d34a38853.tar.gz |
build: Add configure option to specify service user
This is the user as which the service will run as.
https://bugs.freedesktop.org/show_bug.cgi?id=68947
Co-Author: Zeeshan Ali (Khattak) <zeeshanak@gnome.org>
Diffstat (limited to 'data/org.freedesktop.GeoClue2.conf.in')
-rw-r--r-- | data/org.freedesktop.GeoClue2.conf.in | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/data/org.freedesktop.GeoClue2.conf.in b/data/org.freedesktop.GeoClue2.conf.in new file mode 100644 index 0000000..79b2f5f --- /dev/null +++ b/data/org.freedesktop.GeoClue2.conf.in @@ -0,0 +1,15 @@ +<!DOCTYPE busconfig PUBLIC + "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN" + "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd"> +<busconfig> + <policy context="default"> + <!-- Allow everyone to talk to main service. We'll later add an agent to + only share the location if user allows it. --> + <allow send_destination="org.freedesktop.GeoClue2"/> + </policy> + + <policy user="@dbus_srv_user@"> + <!-- Only allow @dbus_srv_user@ to own the name on the bus --> + <allow own="org.freedesktop.GeoClue2"/> + </policy> +</busconfig> |