Blame SOURCES/abrt-2.1.7-replace_deprecated_polkit_functions.patch

f6eb96
From e03f5f1f604097a8b999912771fb2abcdb59db21 Mon Sep 17 00:00:00 2001
f6eb96
From: Jakub Filak <jfilak@redhat.com>
f6eb96
Date: Fri, 20 Sep 2013 16:53:35 +0200
f6eb96
Subject: [ABRT PATCH 02/14] polkit: replace deprecated functions with their
f6eb96
 subtitues
f6eb96
f6eb96
Closes #708
f6eb96
f6eb96
Signed-off-by: Jakub Filak <jfilak@redhat.com>
f6eb96
---
f6eb96
 src/dbus/abrt-polkit.c | 5 ++++-
f6eb96
 1 file changed, 4 insertions(+), 1 deletion(-)
f6eb96
f6eb96
diff --git a/src/dbus/abrt-polkit.c b/src/dbus/abrt-polkit.c
f6eb96
index a71114a..39880e5 100644
f6eb96
--- a/src/dbus/abrt-polkit.c
f6eb96
+++ b/src/dbus/abrt-polkit.c
f6eb96
@@ -101,6 +101,9 @@ PolkitResult polkit_check_authorization_pid(pid_t pid, const char *action_id)
f6eb96
 {
f6eb96
     glib_init();
f6eb96
 
f6eb96
-    PolkitSubject *subject = polkit_unix_process_new(pid);
f6eb96
+    PolkitSubject *subject = polkit_unix_process_new_for_owner(pid,
f6eb96
+            /*use start_time from /proc*/0,
f6eb96
+            /*use uid from /proc*/ -1);
f6eb96
+
f6eb96
     return do_check(subject, action_id);
f6eb96
 }
f6eb96
-- 
f6eb96
1.8.3.1
f6eb96