diff options
author | Dan Williams <dcbw@redhat.com> | 2010-08-26 14:26:12 -0500 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2010-08-26 14:26:12 -0500 |
commit | 3945f75bda13961519f038be47b94f12e23cffc4 (patch) | |
tree | 8f0b4fca68dcac2e0fe2bcc0fb36eeb494709281 /libnm-glib/nm-client.h | |
parent | 022d8e665ceffe2a167e0029619c2bd08ceb912e (diff) | |
download | NetworkManager-3945f75bda13961519f038be47b94f12e23cffc4.tar.gz |
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.
Diffstat (limited to 'libnm-glib/nm-client.h')
-rw-r--r-- | libnm-glib/nm-client.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/libnm-glib/nm-client.h b/libnm-glib/nm-client.h index e863161160..69847fdcc6 100644 --- a/libnm-glib/nm-client.h +++ b/libnm-glib/nm-client.h @@ -56,8 +56,14 @@ typedef enum { NM_CLIENT_PERMISSION_ENABLE_DISABLE_NETWORK = 1, NM_CLIENT_PERMISSION_ENABLE_DISABLE_WIFI = 2, NM_CLIENT_PERMISSION_ENABLE_DISABLE_WWAN = 3, - - NM_CLIENT_PERMISSION_LAST = NM_CLIENT_PERMISSION_ENABLE_DISABLE_WWAN + NM_CLIENT_PERMISSION_SLEEP_WAKE = 4, + NM_CLIENT_PERMISSION_NETWORK_CONTROL = 5, + NM_CLIENT_PERMISSION_WIFI_SHARE_PROTECTED = 6, + NM_CLIENT_PERMISSION_WIFI_SHARE_OPEN = 7, + NM_CLIENT_PERMISSION_SETTINGS_CONNECTION_MODIFY = 8, + NM_CLIENT_PERMISSION_SETTINGS_HOSTNAME_MODIFY = 9, + + NM_CLIENT_PERMISSION_LAST = NM_CLIENT_PERMISSION_SETTINGS_HOSTNAME_MODIFY } NMClientPermission; typedef enum { |