This commit is contained in:
Jan Vaclav 2025-12-18 14:48:21 +01:00
parent a2d147366c
commit 733cd99400
2 changed files with 2 additions and 2 deletions

View file

@ -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",

View file

@ -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