mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-09 06:30:21 +01:00
libnm-glib: add a PermissionDenied error
Used by the applet to help fix CVE-2009-0578
This commit is contained in:
parent
0972fe6b50
commit
3dab15b303
2 changed files with 4 additions and 1 deletions
|
|
@ -67,6 +67,8 @@ nm_settings_error_get_type (void)
|
|||
ENUM_ENTRY (NM_SETTINGS_ERROR_SECRETS_UNAVAILABLE, "SecretsUnavailable"),
|
||||
/* The request for secrets was canceled. */
|
||||
ENUM_ENTRY (NM_SETTINGS_ERROR_SECRETS_REQUEST_CANCELED, "SecretsRequestCanceled"),
|
||||
/* The request could not be completed because permission was denied. */
|
||||
ENUM_ENTRY (NM_SETTINGS_ERROR_PERMISSION_DENIED, "PermissionDenied"),
|
||||
{ 0, 0, 0 },
|
||||
};
|
||||
etype = g_enum_register_static ("NMSettingsError", values);
|
||||
|
|
|
|||
|
|
@ -37,7 +37,8 @@ typedef enum
|
|||
NM_SETTINGS_ERROR_READ_ONLY_CONNECTION,
|
||||
NM_SETTINGS_ERROR_INTERNAL_ERROR,
|
||||
NM_SETTINGS_ERROR_SECRETS_UNAVAILABLE,
|
||||
NM_SETTINGS_ERROR_SECRETS_REQUEST_CANCELED
|
||||
NM_SETTINGS_ERROR_SECRETS_REQUEST_CANCELED,
|
||||
NM_SETTINGS_ERROR_PERMISSION_DENIED
|
||||
} NMSettingsError;
|
||||
|
||||
#define NM_SETTINGS_ERROR (nm_settings_error_quark ())
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue