From 79c36411660907c47194c6ef652f52f640ef36a0 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Wed, 19 May 2021 14:41:42 -0400 Subject: [PATCH] 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. --- src/daemon/rpmostreed-os.cxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/daemon/rpmostreed-os.cxx b/src/daemon/rpmostreed-os.cxx index d8961b54..fa91257a 100644 --- a/src/daemon/rpmostreed-os.cxx +++ b/src/daemon/rpmostreed-os.cxx @@ -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) {