blob: 40e40054239ae00715c4dc5aa359115a9174bf71 [file] [log] [blame]
Brad Bishop6e60e8b2018-02-01 10:27:11 -05001# polkit must prepare polkitd group
Patrick Williamsb48b7b42016-08-17 15:04:38 -05002DEPENDS += "polkit"
3
4inherit useradd
5
6do_install_prepend() {
7 install -m 700 -d ${D}${sysconfdir}/polkit-1/rules.d
8 chown polkitd:polkitd ${D}${sysconfdir}/polkit-1/rules.d
9}
10USERADD_PARAM_${PN}_prepend = "--system --no-create-home --user-group --home-dir ${sysconfdir}/polkit-1 polkitd;"