gracefully handle bad config/policy files, drop polkit-reload-config, syslog
authorDavid Zeuthen <davidz@redhat.com>
Tue, 21 Aug 2007 03:01:19 +0000 (23:01 -0400)
committerDavid Zeuthen <davidz@redhat.com>
Tue, 21 Aug 2007 03:01:19 +0000 (23:01 -0400)
commit07b101ecc84ced454200a21bdcbacd450568753d
treeb0aa3f11eed1812c4d300124ab588a50442495c5
parent49e3a102cdb6bb30926889adf68d66be8be9491b
gracefully handle bad config/policy files, drop polkit-reload-config, syslog

 - don't abort/malfunction if the /etc/PolicyKit/PolicyKit.conf
   configuration file is malformed; simply just continue as normal
   but return 'no' to every question asked. Also use syslog(3) to
   report this to the system log

 - if a .policy file is malformed, simply skip it and still include
   other well-formed .policy files. Use syslog(3) to report if indeed
   a .policy file is malformed.

 - drop /var/lib/PolicyKit/reload and rely on inotify to detect changes to
   - /etc/PolicyKit/PolicyKit.conf
   - Policy files in /usr/share/PolicyKit/policy
   - privileges in /var/lib/PolicyKit and /var/run/PolicyKit

As a result, changes made to /etc/PolicyKit/PolicyKit.conf (typically
an admin edits this file) and .policy files (typically these can
change on package upgrades) in /usr/share/PolicyKit/policy are
instantly picked up.
doc/TODO
doc/man/Makefile.am
doc/man/PolicyKit.conf.5.in
doc/man/polkit-reload-config.1.in [deleted file]
polkit-grant/polkit-grant-helper.c
polkit/Makefile.am
polkit/polkit-context.c
polkit/polkit-policy-cache.c
tools/Makefile.am
tools/polkit-reload-config.in [deleted file]