Skip to contentSkip to conversation

gnome-control-center: Fixup polkit directory permissions

PATCH New Joshua Watt 1 participant 1 message Nov 18, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gnome-control-center: Fixup polkit directory permissions

Fixes up the permissions of the polkit directory to match other recipes, otherwise they conflict at package install time

---
 .../gnome-control-center/gnome-control-center_41.1.bb     | 8 ++++++++
 1 file changed, 8 insertions(+)
meta-gnome/recipes-gnome/gnome-control-center/gnome-control-center_41.1.bb +8 -0
index 80d49d95b..79fa20e41 100644
@@ -44,6 +44,14 @@ EXTRA_OEMESON = " \
     -Dcheese=false \
 "
 
+do_install:append() {
+	# If polkit is setup fixup permissions and ownership
+    if [ -d ${D}${datadir}/polkit-1/rules.d ]; then
+        chmod 700 ${D}${datadir}/polkit-1/rules.d
+        chown polkitd:root ${D}${datadir}/polkit-1/rules.d
+    fi
+}
+
 FILES:${PN} += " \
     ${datadir}/dbus-1 \
     ${datadir}/gnome-shell \
Signature · 1 line
2.33.0