mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-20 07:00:05 +01:00
wip
This commit is contained in:
parent
a2d147366c
commit
733cd99400
2 changed files with 2 additions and 2 deletions
|
|
@ -1130,7 +1130,7 @@ _con_get_request_start(Request *req)
|
||||||
perm = NM_AUTH_PERMISSION_SETTINGS_MODIFY_SYSTEM;
|
perm = NM_AUTH_PERMISSION_SETTINGS_MODIFY_SYSTEM;
|
||||||
nm_auth_chain_set_data(req->con.chain, "perm", (gpointer) perm, NULL);
|
nm_auth_chain_set_data(req->con.chain, "perm", (gpointer) perm, NULL);
|
||||||
|
|
||||||
nm_auth_chain_add_call_unsafe(req->con.chain, perm, TRUE);
|
nm_auth_chain_add_call_unsafe(req->con.chain, perm, !!req->con.get.existing_secrets);
|
||||||
} else {
|
} else {
|
||||||
_LOGD(NULL,
|
_LOGD(NULL,
|
||||||
"(" LOG_REQ_FMT ") requesting user-owned secrets from agent %s",
|
"(" LOG_REQ_FMT ") requesting user-owned secrets from agent %s",
|
||||||
|
|
|
||||||
|
|
@ -781,7 +781,7 @@ validate_secret_flags(NMConnection *connection, GVariant *secrets, ForEachSecret
|
||||||
static gboolean
|
static gboolean
|
||||||
secret_is_system_owned(NMSettingSecretFlags flags, gpointer user_data)
|
secret_is_system_owned(NMSettingSecretFlags flags, gpointer user_data)
|
||||||
{
|
{
|
||||||
return !NM_FLAGS_HAS(flags, NM_SETTING_SECRET_FLAG_AGENT_OWNED);
|
return !NM_FLAGS_HAS(flags, NM_SETTING_SECRET_FLAG_AGENT_OWNED) && !NM_FLAGS_HAS(flags, NM_SETTING_SECRET_FLAG_NOT_SAVED);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue