From owner-svn-ports-all@freebsd.org Sun Feb 12 15:50:53 2017 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9AB90CDB74B; Sun, 12 Feb 2017 15:50:53 +0000 (UTC) (envelope-from woodsb02@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4F15B1B66; Sun, 12 Feb 2017 15:50:53 +0000 (UTC) (envelope-from woodsb02@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v1CFoqPx026228; Sun, 12 Feb 2017 15:50:52 GMT (envelope-from woodsb02@FreeBSD.org) Received: (from woodsb02@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v1CFoq2M026226; Sun, 12 Feb 2017 15:50:52 GMT (envelope-from woodsb02@FreeBSD.org) Message-Id: <201702121550.v1CFoq2M026226@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: woodsb02 set sender to woodsb02@FreeBSD.org using -f From: Ben Woods Date: Sun, 12 Feb 2017 15:50:52 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r433951 - head/sysutils/polkit X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Feb 2017 15:50:53 -0000 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