Blame 0140-dbus-keep-the-polkit-authorization-for-all-clients.patch

69165ba
From 9c807b4f4d808201118f15182e12a9e68e12dc36 Mon Sep 17 00:00:00 2001
69165ba
From: Jakub Filak <jfilak@redhat.com>
69165ba
Date: Thu, 2 Jul 2015 12:19:30 +0200
69165ba
Subject: [PATCH] dbus: keep the polkit authorization for all clients
69165ba
69165ba
I played with the defaults and I've found out that:
69165ba
 - allow_any == clients like ssh
69165ba
 - allow_active == for local console (X, terminal)
69165ba
 - allow_inactive had no effect
69165ba
69165ba
Anyway, I do not find any reason to prevent any client from getting
69165ba
access to all ABRT problems and I also think we should use
69165ba
'auth_admin_keep' until we implement the new abrt dbus service.
69165ba
69165ba
auth_admin_keep - requires authorization for the first request and the
69165ba
authorization is kept for a brief period (polkit(8)).
69165ba
69165ba
commit e98c8766655216db3d9a08b1fa52ba7decf57c46
69165ba
Author: Stef Walter <stefw@redhat.com>
69165ba
Date:   Mon May 5 08:41:00 2014 +0200
69165ba
69165ba
dbus: Fix desktop centric polkit policy file
69165ba
69165ba
In order to allow use of ABRT's DBus API on servers, the polkit
69165ba
policy should allow admin usage even when not logged in an active
69165ba
seat (ie: monitor and keyboard). Otherwise use from ssh logins and
69165ba
Cockpit is prevented.
69165ba
69165ba
Related: #1224984
69165ba
69165ba
Signed-off-by: Jakub Filak <jfilak@redhat.com>
69165ba
69165ba
Conflicts:
69165ba
	src/dbus/abrt_polkit.policy
69165ba
---
69165ba
 src/dbus/abrt_polkit.policy | 8 ++++----
69165ba
 1 file changed, 4 insertions(+), 4 deletions(-)
69165ba
69165ba
diff --git a/src/dbus/abrt_polkit.policy b/src/dbus/abrt_polkit.policy
69165ba
index 06008b4..beb615f 100644
69165ba
--- a/src/dbus/abrt_polkit.policy
69165ba
+++ b/src/dbus/abrt_polkit.policy
69165ba
@@ -19,9 +19,9 @@ Copyright (c) 2012 ABRT Team <crash-catcher@fedorahosted.com>
69165ba
     <description>Get problems from all users</description>
69165ba
     <message>Reading others problems requires authentication</message>
69165ba
     <defaults>
69165ba
-      <allow_any>no</allow_any>
69165ba
+      <allow_any>auth_admin_keep</allow_any>
69165ba
       <allow_active>auth_admin_keep</allow_active>
69165ba
-      <allow_inactive>no</allow_inactive>
69165ba
+      <allow_inactive>auth_admin_keep</allow_inactive>
69165ba
     </defaults>
69165ba
   </action>
69165ba
 
69165ba
@@ -30,9 +30,9 @@ Copyright (c) 2012 ABRT Team <crash-catcher@fedorahosted.com>
69165ba
     <description>Set value of configuration properties</description>
69165ba
     <message>Update configuration values reuquires authentication</message>
69165ba
     <defaults>
69165ba
-      <allow_any>no</allow_any>
69165ba
+      <allow_any>auth_admin_keep</allow_any>
69165ba
       <allow_active>auth_admin_keep</allow_active>
69165ba
-      <allow_inactive>no</allow_inactive>
69165ba
+      <allow_inactive>auth_admin_keep</allow_inactive>
69165ba
     </defaults>
69165ba
   </action>
69165ba
 
69165ba
-- 
69165ba
2.4.3
69165ba