From d748bb465848959f3da6d01a0d76b2ea1c750fbf Mon Sep 17 00:00:00 2001 From: Ben Woods Date: Sun, 12 Feb 2017 15:50:52 +0000 Subject: sysutils/polkit: Fix directory permissions to allow reading config files If the $LOCALBASE/etc/polkit-1 directory is owned by root and set 700, then polkit which is running as the polkitd user cannot read the config files in $LOCALBASE/etc/polkit-1/rules.d/* resulting in this error: Loading rules from directory /usr/local/etc/polkit-1/rules.d Error opening rules directory: Error opening directory \ '/usr/local/etc/polkit-1/rules.d': Permission denied \ (g-file-error-quark, 2) Loading rules from directory /usr/local/share/polkit-1/rules.d To fix this, change the $LOCALBASE/etc/polkit-1 to be set 755, and the $LOCALBASE/etc/polkit-1/localauthority to be set 700. This was sense checked with Fedora Linux which does the same, and with Debian/Ubuntu which have /etc/polkit-1/localauthority as owned by root:polkitd and set 750. PR: 202615 Reported by: rozhuk.im@gmail.com --- sysutils/polkit/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sysutils/polkit/Makefile') diff --git a/sysutils/polkit/Makefile b/sysutils/polkit/Makefile index a23727b7c812..fb8fb99f75a6 100644 --- a/sysutils/polkit/Makefile +++ b/sysutils/polkit/Makefile @@ -3,7 +3,7 @@ PORTNAME= polkit PORTVERSION= 0.113 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= sysutils gnome MASTER_SITES= http://www.freedesktop.org/software/polkit/releases/ -- cgit v1.2.3