[gnome-builder] plugins/flatpak: give access to system policykit
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] plugins/flatpak: give access to system policykit
- Date: Sun, 4 Sep 2022 07:26:31 +0000 (UTC)
commit 46b8a4a266f561234584239d8b57c74a0640a76d
Author: Christian Hergert <chergert redhat com>
Date: Sun Sep 4 00:26:21 2022 -0700
plugins/flatpak: give access to system policykit
This is needed so that we can request permissions from the container to
the host policykit service to communicate with sysprofd.
src/plugins/flatpak/gbp-flatpak-runtime.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/src/plugins/flatpak/gbp-flatpak-runtime.c b/src/plugins/flatpak/gbp-flatpak-runtime.c
index cf3e7bc01..dc53537e9 100644
--- a/src/plugins/flatpak/gbp-flatpak-runtime.c
+++ b/src/plugins/flatpak/gbp-flatpak-runtime.c
@@ -265,6 +265,7 @@ gbp_flatpak_runtime_handle_run_context_cb (IdeRunContext *run_context,
/* Layering violation, but always give access to profiler */
ide_run_context_append_argv (run_context, "--system-talk-name=org.gnome.Sysprof3");
+ ide_run_context_append_argv (run_context, "--system-talk-name=org.freedesktop.PolicyKit1");
/* And last, before our child command, is the staging directory */
ide_run_context_append_argv (run_context, staging_dir);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]