systemd/polkit: fix permissions on rules.d

This is a downstream port of:
https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/96251

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7813>
This commit is contained in:
Clayton Craft 2026-01-21 12:22:14 -08:00 committed by The Friendly Merge Bot
parent c7c32a9e0f
commit 49ef561fcb
No known key found for this signature in database

View file

@ -3,7 +3,7 @@ maintainer="Jane Rachinger <jane400+pmaports@postmarketos.org>"
pkgname=polkit
_pkgver=127
pkgver=9999$_pkgver
pkgrel=0
pkgrel=1
pkgdesc="Application development toolkit for controlling system-wide privileges"
url="https://github.com/polkit-org/polkit"
arch="all"
@ -87,8 +87,6 @@ package() {
install -m644 "$srcdir"/alpine-polkit.pam etc/pam.d/polkit-1
# See polkit's configure script which tells us what permissions to set
chown -R polkitd:polkitd etc/polkit-1/rules.d usr/share/polkit-1/rules.d
chmod -R 700 etc/polkit-1/rules.d usr/share/polkit-1/rules.d
chmod 4755 usr/lib/polkit-1/polkit-agent-helper-1
chmod 4755 usr/bin/pkexec
}