summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2015-11-12 16:23:13 +0900
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2015-11-17 19:30:29 +0900
commitf6627279567ee1826d39d80e3929b2bd3e5d7987 (patch)
treece835c55ef8592de37d945b2eda0f7034559a2e0
parentce4a667951d0e0b0cbcf9dfff4480e48f12927da (diff)
downloaddefinitions-f6627279567ee1826d39d80e3929b2bd3e5d7987.tar.gz
Create GeoClue user for GeoClue in GNOME stratum
GeoClue is supposed to run with a specific system user. This patch configures geoclue to run as the geoclue user and creates the system user for geoclue at system integration time. Change-Id: I710b80da7b5151878f8defe3549ef471ab33eca5
-rw-r--r--strata/gnome/geoclue.morph10
1 files changed, 9 insertions, 1 deletions
diff --git a/strata/gnome/geoclue.morph b/strata/gnome/geoclue.morph
index 7757882c..3be946bb 100644
--- a/strata/gnome/geoclue.morph
+++ b/strata/gnome/geoclue.morph
@@ -2,4 +2,12 @@ name: geoclue
kind: chunk
build-system: autotools
configure-commands:
-- ./autogen.sh --prefix="$PREFIX" --sysconfdir=/etc --disable-nmea-source
+- |
+ ./autogen.sh --prefix="$PREFIX" --sysconfdir=/etc \
+ --disable-nmea-source \
+ --with-dbus-service-user=geoclue
+system-integration:
+ geoclue-misc:
+ 00-add-geoclue-user:
+ - groupadd geoclue
+ - useradd -c "GeoClue Owner" -r -g geoclue -s /bin/false geoclue