[Bug 202615] sysutils/polkit wrong permissions

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Feb 12 15:51:12 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=202615

--- Comment #5 from commit-hook at freebsd.org ---
A commit references this bug:

Author: woodsb02
Date: Sun Feb 12 15:50:52 UTC 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 at gmail.com

Changes:
  head/sysutils/polkit/Makefile
  head/sysutils/polkit/pkg-plist

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-gnome mailing list