Accepting request 281005 from Base:System
- Try to fix kded leaking due to powerdevil exposing this issue in polkit: (bsc#912889) * polkit-no-kded-leak.patch OBS-URL: https://build.opensuse.org/request/show/281005 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/polkit?expand=0&rev=53
This commit is contained in:
commit
5b8c9ada43
26
polkit-no-kded-leak.patch
Normal file
26
polkit-no-kded-leak.patch
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
From f4d71e0de885010494b8b0b8d62ca910011d7544 Mon Sep 17 00:00:00 2001
|
||||||
|
From: "Max A. Dednev" <dednev@rambler.ru>
|
||||||
|
Date: Sun, 11 Jan 2015 20:00:44 -0500
|
||||||
|
Subject: authority: Fix memory leak in EnumerateActions call results handler
|
||||||
|
|
||||||
|
Policykit-1 doesn't release reference counters of GVariant data for
|
||||||
|
org.freedesktop.PolicyKit1.Authority.EnumerateActions dbus call. This
|
||||||
|
patch fixed reference counting and following memory leak.
|
||||||
|
|
||||||
|
https://bugs.freedesktop.org/show_bug.cgi?id=88288
|
||||||
|
|
||||||
|
diff --git a/src/polkit/polkitauthority.c b/src/polkit/polkitauthority.c
|
||||||
|
index 75619ab..ab6d3cd 100644
|
||||||
|
--- a/src/polkit/polkitauthority.c
|
||||||
|
+++ b/src/polkit/polkitauthority.c
|
||||||
|
@@ -715,7 +715,6 @@ polkit_authority_enumerate_actions_finish (PolkitAuthority *authority,
|
||||||
|
while ((child = g_variant_iter_next_value (&iter)) != NULL)
|
||||||
|
{
|
||||||
|
ret = g_list_prepend (ret, polkit_action_description_new_for_gvariant (child));
|
||||||
|
- g_variant_ref_sink (child);
|
||||||
|
g_variant_unref (child);
|
||||||
|
}
|
||||||
|
ret = g_list_reverse (ret);
|
||||||
|
--
|
||||||
|
cgit v0.10.2
|
||||||
|
|
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jan 12 13:21:20 UTC 2015 - tchvatal@suse.com
|
||||||
|
|
||||||
|
- Try to fix kded leaking due to powerdevil exposing this issue in
|
||||||
|
polkit: (bsc#912889)
|
||||||
|
* polkit-no-kded-leak.patch
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Dec 9 16:23:50 UTC 2014 - meissner@suse.com
|
Tue Dec 9 16:23:50 UTC 2014 - meissner@suse.com
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package polkit
|
# spec file for package polkit
|
||||||
#
|
#
|
||||||
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -37,6 +37,9 @@ Source99: baselibs.conf
|
|||||||
Patch0: polkit-no-wheel-group.patch
|
Patch0: polkit-no-wheel-group.patch
|
||||||
# PATCH-FIX-UPSTREAM polkit-no-systemd.patch bnc#782395 fdo#55377 vuntz@opensuse.org -- Do not reference non-existing polkit.service file for systemd (only applied if not built with systemd support)
|
# PATCH-FIX-UPSTREAM polkit-no-systemd.patch bnc#782395 fdo#55377 vuntz@opensuse.org -- Do not reference non-existing polkit.service file for systemd (only applied if not built with systemd support)
|
||||||
Patch1: polkit-no-systemd.patch
|
Patch1: polkit-no-systemd.patch
|
||||||
|
# PATCH-FIX-UPSTREAM polkit-no-kded-leak -- attemp to fix leaking of kded
|
||||||
|
# duirng long periods of time while in lockscreen due to powerdevil managing
|
||||||
|
Patch2: polkit-no-kded-leak.patch
|
||||||
# needed for patch1
|
# needed for patch1
|
||||||
BuildRequires: autoconf
|
BuildRequires: autoconf
|
||||||
# needed for patch1
|
# needed for patch1
|
||||||
@ -129,6 +132,7 @@ This package provides the GObject Introspection bindings for PolicyKit.
|
|||||||
%if !(0%{?with_systemd})
|
%if !(0%{?with_systemd})
|
||||||
%patch1 -p1
|
%patch1 -p1
|
||||||
%endif
|
%endif
|
||||||
|
%patch2 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export V=1
|
export V=1
|
||||||
|
Loading…
Reference in New Issue
Block a user