agents: add a "user-requested" flag to secret agent requests
Allows agents to provide different behavior depending on whether the secrets request was initiated by a user (eg by picking a connection from a UI menu or by 'nmcli con up') or was automatically started by NetworkManager. See https://bugzilla.gnome.org/show_bug.cgi?id=660293
This commit is contained in:
@@ -130,6 +130,9 @@ nm_act_request_get_secrets (NMActRequest *self,
|
||||
info->callback = callback;
|
||||
info->callback_data = callback_data;
|
||||
|
||||
if (priv->user_requested)
|
||||
flags |= NM_SETTINGS_GET_SECRETS_FLAG_USER_REQUESTED;
|
||||
|
||||
call_id = nm_settings_connection_get_secrets (NM_SETTINGS_CONNECTION (priv->connection),
|
||||
priv->user_requested,
|
||||
priv->user_uid,
|
||||
|
Reference in New Issue
Block a user