core: consolidate all permissions checking into main D-Bus interface
authorDan Williams <dcbw@redhat.com>
Thu, 26 Aug 2010 19:26:12 +0000 (14:26 -0500)
committerDan Williams <dcbw@redhat.com>
Thu, 26 Aug 2010 19:26:12 +0000 (14:26 -0500)
commit3945f75bda13961519f038be47b94f12e23cffc4
tree8f0b4fca68dcac2e0fe2bcc0fb36eeb494709281
parent022d8e665ceffe2a167e0029619c2bd08ceb912e
core: consolidate all permissions checking into main D-Bus interface

Moves the system settings permissions checking into the core service's
permissions checking, which at the same time enables 3-way permission
reporting (yes, no, auth) instead of the old yes/no that we had for
system settings permissions before.  This allows UI to show a lock
icon or such when the user could authenticate to gain the permission.

It also moves the wifi-create permissions' namespace to the main
namespace (not .settings) since they really should be checked before
starting a shared wifi connection, rather than having anything to do
with the settings service.
12 files changed:
introspection/nm-settings.xml
libnm-glib/nm-client.c
libnm-glib/nm-client.h
libnm-glib/nm-remote-settings.c
libnm-glib/nm-remote-settings.h
policy/org.freedesktop.NetworkManager.policy.in
src/nm-manager-auth.h
src/nm-manager.c
src/system-settings/nm-polkit-helpers.h
src/system-settings/nm-sysconfig-connection.c
src/system-settings/nm-sysconfig-settings.c
src/system-settings/nm-sysconfig-settings.h