[oe-commits] Ash Charles : polkit-group-rule: Add polkitd user and group

git at git.openembedded.org git at git.openembedded.org
Wed Feb 4 16:11:52 UTC 2015


Module: meta-openembedded.git
Branch: master-next
Commit: b9c9ed5ceb302f0bd041a7516221a3b3f7cca799
URL:    http://git.openembedded.org/?p=meta-openembedded.git&a=commit;h=b9c9ed5ceb302f0bd041a7516221a3b3f7cca799

Author: Ash Charles <ashcharles at gmail.com>
Date:   Wed Jan 28 17:38:13 2015 -0800

polkit-group-rule: Add polkitd user and group

Recipes including polkit-group-rule.inc correctly install a directory
with the user and group set as 'polkitd'.  To avoid warnings like
these when assemblying the rootfs,

  WARNING: log_check: warning: user polkitd does not exist - using root
  ...
  WARNING: log_check: warning: group polkitd does not exist - using root

create this user and group.

Note: although the polkit recipe itself, on which this depends, is
      creating this same user and group, it seems that the useradd class
      needs this to be specified independently.

Signed-off-by: Ash Charles <ashcharles at gmail.com>
Acked-by: Andreas Müller <schnitzeltony at googlemail.com>
Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>

---

 meta-oe/recipes-extended/polkit/polkit-group-rule.inc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta-oe/recipes-extended/polkit/polkit-group-rule.inc b/meta-oe/recipes-extended/polkit/polkit-group-rule.inc
index 8d1a89a..3435e93 100644
--- a/meta-oe/recipes-extended/polkit/polkit-group-rule.inc
+++ b/meta-oe/recipes-extended/polkit/polkit-group-rule.inc
@@ -7,3 +7,4 @@ do_install_prepend() {
     install -m 700 -d ${D}${sysconfdir}/polkit-1/rules.d
     chown polkitd:polkitd ${D}${sysconfdir}/polkit-1/rules.d
 }
+USERADD_PARAM_${PN}_prepend = "--system --no-create-home --user-group --home-dir ${sysconfdir}/polkit-1 polkitd;"



More information about the Openembedded-commits mailing list