svn commit: r434073 - branches/2017Q1/sysutils/polkit
Ben Woods
woodsb02 at FreeBSD.org
Tue Feb 14 10:34:31 UTC 2017
Author: woodsb02
Date: Tue Feb 14 10:34:29 2017
New Revision: 434073
URL: https://svnweb.freebsd.org/changeset/ports/434073
Log:
MFH: r433951
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 at gmail.com
Approved by: ports-secteam (junovitch)
Modified:
branches/2017Q1/sysutils/polkit/Makefile
branches/2017Q1/sysutils/polkit/pkg-plist
Directory Properties:
branches/2017Q1/ (props changed)
Modified: branches/2017Q1/sysutils/polkit/Makefile
==============================================================================
--- branches/2017Q1/sysutils/polkit/Makefile Tue Feb 14 10:29:38 2017 (r434072)
+++ branches/2017Q1/sysutils/polkit/Makefile Tue Feb 14 10:34:29 2017 (r434073)
@@ -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/
Modified: branches/2017Q1/sysutils/polkit/pkg-plist
==============================================================================
--- branches/2017Q1/sysutils/polkit/pkg-plist Tue Feb 14 10:29:38 2017 (r434072)
+++ branches/2017Q1/sysutils/polkit/pkg-plist Tue Feb 14 10:34:29 2017 (r434073)
@@ -64,7 +64,8 @@ share/polkit-1/actions/org.freedesktop.p
@dir etc/polkit-1/localauthority/30-site.d
@dir etc/polkit-1/localauthority/20-org.d
@dir etc/polkit-1/localauthority/10-vendor.d
- at dir(,,700) etc/polkit-1
+ at dir(,,700) etc/polkit-1/localauthority
+ at dir etc/polkit-1
@dir /var/lib/polkit-1/localauthority/90-mandatory.d
@dir /var/lib/polkit-1/localauthority/50-local.d
@dir /var/lib/polkit-1/localauthority/30-site.d
More information about the svn-ports-branches
mailing list