aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-app-framework/recipes-config/polkit-rule-agl-app/polkit-rule-agl-app.bb5
1 files changed, 4 insertions, 1 deletions
diff --git a/meta-app-framework/recipes-config/polkit-rule-agl-app/polkit-rule-agl-app.bb b/meta-app-framework/recipes-config/polkit-rule-agl-app/polkit-rule-agl-app.bb
index fe6ecf863..57dda7787 100644
--- a/meta-app-framework/recipes-config/polkit-rule-agl-app/polkit-rule-agl-app.bb
+++ b/meta-app-framework/recipes-config/polkit-rule-agl-app/polkit-rule-agl-app.bb
@@ -6,7 +6,7 @@ SRC_URI = "file://50-agl-app.rules"
DEPENDS += "polkit"
-inherit features_check
+inherit useradd features_check
REQUIRED_DISTRO_FEATURES = "polkit"
do_install() {
@@ -15,4 +15,7 @@ do_install() {
install -m 0644 ${WORKDIR}/50-agl-app.rules ${D}${datadir}/polkit-1/rules.d
}
+USERADD_PACKAGES = "${PN}"
+USERADD_PARAM:${PN} += "--system --no-create-home --user-group --home-dir ${sysconfdir}/polkit-1 polkitd;"
+
FILES:${PN} += "${datadir}/polkit-1/rules.d/*.rules"