Date: Sun, 12 Feb 2017 15:50:52 +0000 (UTC) From: Ben Woods <woodsb02@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r433951 - head/sysutils/polkit Message-ID: <201702121550.v1CFoq2M026226@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: woodsb02 Date: Sun Feb 12 15:50:52 2017 New Revision: 433951 URL: https://svnweb.freebsd.org/changeset/ports/433951 Log: 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 Modified: head/sysutils/polkit/Makefile head/sysutils/polkit/pkg-plist Modified: head/sysutils/polkit/Makefile ============================================================================== --- head/sysutils/polkit/Makefile Sun Feb 12 15:49:35 2017 (r433950) +++ head/sysutils/polkit/Makefile Sun Feb 12 15:50:52 2017 (r433951) @@ -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: head/sysutils/polkit/pkg-plist ============================================================================== --- head/sysutils/polkit/pkg-plist Sun Feb 12 15:49:35 2017 (r433950) +++ head/sysutils/polkit/pkg-plist Sun Feb 12 15:50:52 2017 (r433951) @@ -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?201702121550.v1CFoq2M026226>