[sysprof] helpers: do not allow interactive authorization
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sysprof] helpers: do not allow interactive authorization
- Date: Wed, 29 May 2019 22:23:21 +0000 (UTC)
commit d6e3d580fd86c41addcef7f1ebd29043264b303c
Author: Christian Hergert <chergert redhat com>
Date: Sun May 12 16:07:15 2019 -0700
helpers: do not allow interactive authorization
We want to use the authorize_async() flow up front to authorize the
connection, and then make all other API fail immediately to reduce the
chance that we block the peers.
src/libsysprof/sysprof-helpers.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/libsysprof/sysprof-helpers.c b/src/libsysprof/sysprof-helpers.c
index d577286..a29eb31 100644
--- a/src/libsysprof/sysprof-helpers.c
+++ b/src/libsysprof/sysprof-helpers.c
@@ -469,7 +469,7 @@ sysprof_helpers_perf_event_open (SysprofHelpers *self,
cpu,
handle,
flags),
- G_DBUS_CALL_FLAGS_ALLOW_INTERACTIVE_AUTHORIZATION,
+ G_DBUS_CALL_FLAGS_NO_AUTO_START,
-1,
fd_list,
&out_fd_list,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]