[Lunar-commits] <moonbase> PolicyKit: Adjusting the BUILD to ensure files/directories have the

Dennis `stumbles` Veatch stumbles at lunar-linux.org
Sun Oct 23 16:28:46 CEST 2011


commit 6da252050152a04a94d46ed16f3c9fc9741f385a
Author: Dennis `stumbles` Veatch <stumbles at lunar-linux.org>
Date:   Sun Oct 23 10:28:46 2011 -0400

    PolicyKit: Adjusting the BUILD to ensure files/directories have the
    
    proper permissions noted in it configure summary.
---
 security/PolicyKit/BUILD |   15 ++++++++++++++-
 1 files changed, 14 insertions(+), 1 deletions(-)

diff --git a/security/PolicyKit/BUILD b/security/PolicyKit/BUILD
index b2ab715..f9d1bd2 100644
--- a/security/PolicyKit/BUILD
+++ b/security/PolicyKit/BUILD
@@ -5,6 +5,19 @@
   add_priv_group polkituser &&
   add_priv_user polkituser:polkituser -d /dev/null -s /bin/true &&
 
-  default_build
+  default_build &&
 
+# Per the configure summary, these files/directories need these permissions
+  mkdir -p /var/run/PolicyKit /var/lib/PolicyKit &&
+  chown root.polkituser /var/run/PolicyKit /var/lib/PolicyKit &&
+  chmod 770 /var/run/PolicyKit /var/lib/PolicyKit &&
+  chmod 644 /var/lib/misc/PolicyKit.reload &&
+  chmod 4755 /usr/libexec/polkit-set-default-helper &&
+  chmod 2755 /usr/libexec/polkit-read-auth-helper &&
+  chmod 2755 /usr/libexec/polkit-revoke-helper &&
+  chmod 2755 /usr/libexec/polkit-grant-helper &&
+  chmod 2755 /usr/libexec/polkit-explicit-grant-helper &&
+  chmod 2755 /usr/libexec/polkit-grant-helper-pam &&
+  chmod 4755 /usr/libexec/polkit-resolve-exe-helper
+  
 ) > $C_FIFO 2>&1


More information about the Lunar-commits mailing list