diff --git a/packages/security/polkit/install b/packages/security/polkit/install index 9cf4d05d27..cac832c755 100755 --- a/packages/security/polkit/install +++ b/packages/security/polkit/install @@ -1,12 +1,5 @@ #!/bin/sh -# NOTE: The directory /var/lib/polkit-1 must be owned -# by root and have mode 700 -# NOTE: The file /usr/lib/polkit/polkit-agent-helper-1 must be owned -# by root and have mode 4755 (setuid root binary) -# NOTE: The file ${exec_prefix}/bin/pkexec must be owned by root and -# have mode 4755 (setuid root binary) - . config/options $SCRIPTS/install zlib @@ -23,6 +16,15 @@ mkdir -p $INSTALL/etc/dbus-1/system.d mkdir -p $INSTALL/etc/pam.d cp -P $PKG_BUILD/data/polkit-1 $INSTALL/etc/pam.d +mkdir -p $INSTALL/etc/polkit-1/localauthority + echo "chmod 700 $INSTALL/etc/polkit-1/localauthority" >> $FAKEROOT_SCRIPT + +mkdir -p $INSTALL/etc/polkit-1/localauthority/10-vendor.d +mkdir -p $INSTALL/etc/polkit-1/localauthority/20-org.d +mkdir -p $INSTALL/etc/polkit-1/localauthority/30-site.d +mkdir -p $INSTALL/etc/polkit-1/localauthority/50-local.d +mkdir -p $INSTALL/etc/polkit-1/localauthority/90-mandatory.d + mkdir -p $INSTALL/etc/polkit-1/localauthority.conf.d cp -P $PKG_BUILD/src/polkitbackend/50-localauthority.conf $INSTALL/etc/polkit-1/localauthority.conf.d