summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-extended/polkit/polkit-group-rule.inc
blob: e38e344c14d3ee6b1a84cb9d131b41ce8c2cf343 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# polkit must prepare polkitd group
DEPENDS += "polkit"

inherit features_check
REQUIRED_DISTRO_FEATURES = "polkit"

inherit useradd

do_install_prepend() {
    install -m 700 -d ${D}${sysconfdir}/polkit-1/rules.d
    chown polkitd:root ${D}/${sysconfdir}/polkit-1/rules.d
}
USERADD_PARAM_${PN}_prepend = "--system --no-create-home --user-group --home-dir ${sysconfdir}/polkit-1 polkitd;"