arrfab / rpms / abrt

Forked from rpms/abrt 5 years ago
Clone
Blob Blame History Raw
From e03f5f1f604097a8b999912771fb2abcdb59db21 Mon Sep 17 00:00:00 2001
From: Jakub Filak <jfilak@redhat.com>
Date: Fri, 20 Sep 2013 16:53:35 +0200
Subject: [ABRT PATCH 02/14] polkit: replace deprecated functions with their
 subtitues

Closes #708

Signed-off-by: Jakub Filak <jfilak@redhat.com>
---
 src/dbus/abrt-polkit.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/dbus/abrt-polkit.c b/src/dbus/abrt-polkit.c
index a71114a..39880e5 100644
--- a/src/dbus/abrt-polkit.c
+++ b/src/dbus/abrt-polkit.c
@@ -101,6 +101,9 @@ PolkitResult polkit_check_authorization_pid(pid_t pid, const char *action_id)
 {
     glib_init();
 
-    PolkitSubject *subject = polkit_unix_process_new(pid);
+    PolkitSubject *subject = polkit_unix_process_new_for_owner(pid,
+            /*use start_time from /proc*/0,
+            /*use uid from /proc*/ -1);
+
     return do_check(subject, action_id);
 }
-- 
1.8.3.1