daemon: If we can't figure out auth rule, use override

This is needed for `deploy --ex-cliwrap=true` which is kind
of like a local override.
This commit is contained in:
Colin Walters 2021-05-19 14:41:42 -04:00
parent 11718b9715
commit 79c3641166

View File

@ -211,6 +211,11 @@ os_authorize_method (GDBusInterfaceSkeleton *interface,
(override_replace_local_pkgs != NULL && g_variant_n_children (override_replace_local_pkgs) > 0) ||
no_overrides)
g_ptr_array_add (actions, (void*)"org.projectatomic.rpmostree1.override");
/* If we couldn't figure out what's going on, count it as an override. This occurs
* right now with `deploy --ex-cliwrap=true`.
*/
if (actions->len == 0)
g_ptr_array_add (actions, (void*)"org.projectatomic.rpmostree1.override");
}
else if (g_strcmp0 (method_name, "FinalizeDeployment") == 0)
{