Date: Tue, 14 Feb 2017 10:34:30 +0000 (UTC) From: Ben Woods <woodsb02@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org Subject: svn commit: r434073 - branches/2017Q1/sysutils/polkit Message-ID: <201702141034.v1EAYUNS082040@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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@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 -@dir(,,700) etc/polkit-1 +@dir(,,700) etc/polkit-1/localauthority +@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201702141034.v1EAYUNS082040>