[Buildroot] [git commit branch/2022.02.x] package/polkit: fix file permissions to match upstream

Peter Korsgaard peter at korsgaard.com
Tue Dec 20 09:51:30 UTC 2022


commit: https://git.buildroot.net/buildroot/commit/?id=988a548da68217cefa4a74f8fce5f4eea6d9b7e9
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2022.02.x

The permissions are now in sync with meson_post_install.py,
and debian.

Most importantly, polkit-agent-helper-1 is now setuid root,
but also the rules.d directories rather than their parents
are owned by polkitd.

Signed-off-by: Norbert Lange <nolange79 at gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998 at free.fr>
(cherry picked from commit 712ee21876562b46947142f35dfe1186d88ad241)
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
---
 package/polkit/polkit.mk | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/package/polkit/polkit.mk b/package/polkit/polkit.mk
index a8b371acf8..ddbc81b3b2 100644
--- a/package/polkit/polkit.mk
+++ b/package/polkit/polkit.mk
@@ -56,9 +56,10 @@ define POLKIT_USERS
 endef
 
 define POLKIT_PERMISSIONS
-	/etc/polkit-1 r 750 root polkitd - - - - -
-	/usr/share/polkit-1 r 750 root polkitd - - - - -
+	/etc/polkit-1/rules.d d 700 polkitd root - - - - -
+	/usr/share/polkit-1/rules.d d 700 polkitd root - - - - -
 	/usr/bin/pkexec f 4755 root root - - - - -
+	/usr/lib/polkit-1/polkit-agent-helper-1 f 4755 root root - - - - -
 endef
 
 define POLKIT_INSTALL_INIT_SYSTEMD



More information about the buildroot mailing list