From 3945f75bda13961519f038be47b94f12e23cffc4 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Thu, 26 Aug 2010 14:26:12 -0500 Subject: 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. --- libnm-glib/nm-client.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'libnm-glib/nm-client.h') 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 { -- cgit v1.2.1