forked from pool/libvirt
- Add upstream patches to fix issues with older PolicyKit
c05ec920-polkit0-build.patch fcdfa31f-polkit0-auth.patch OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=198
This commit is contained in:
parent
cde45b0d95
commit
a78854eae9
24
c05ec920-polkit0-build.patch
Normal file
24
c05ec920-polkit0-build.patch
Normal file
@ -0,0 +1,24 @@
|
||||
commit c05ec920219dc9fad9230c3cea7c1fb17d29ddc3
|
||||
Author: Jim Fehlig <jfehlig@suse.com>
|
||||
Date: Wed Feb 15 21:34:13 2012 -0700
|
||||
|
||||
Fix build with polkit0
|
||||
|
||||
Commit 8dd623b9 introduced a build error with --enable-compile-warnings=error
|
||||
|
||||
remote.c:2593: error: unused variable 'rv' [-Wunused-variable]
|
||||
|
||||
Pushing under build-breaker rule.
|
||||
|
||||
Index: libvirt-0.9.10/daemon/remote.c
|
||||
===================================================================
|
||||
--- libvirt-0.9.10.orig/daemon/remote.c
|
||||
+++ libvirt-0.9.10/daemon/remote.c
|
||||
@@ -2589,7 +2589,6 @@ remoteDispatchAuthPolkit(virNetServerPtr
|
||||
DBusError err;
|
||||
const char *action;
|
||||
char *ident = NULL;
|
||||
- int rv = -1;
|
||||
struct daemonClientPrivate *priv =
|
||||
virNetServerClientGetPrivateData(client);
|
||||
|
@ -12,11 +12,11 @@ Fix polkit authentication bypass when caller UID = 0.
|
||||
daemon/remote.c | 20 +++++++++-----------
|
||||
1 files changed, 9 insertions(+), 11 deletions(-)
|
||||
|
||||
diff --git a/daemon/remote.c b/daemon/remote.c
|
||||
index 1cea942..a57656c 100644
|
||||
--- a/daemon/remote.c
|
||||
+++ b/daemon/remote.c
|
||||
@@ -2052,16 +2052,16 @@ remoteDispatchAuthList(virNetServerPtr server ATTRIBUTE_UNUSED,
|
||||
Index: libvirt-0.9.10/daemon/remote.c
|
||||
===================================================================
|
||||
--- libvirt-0.9.10.orig/daemon/remote.c
|
||||
+++ libvirt-0.9.10/daemon/remote.c
|
||||
@@ -2052,16 +2052,16 @@ remoteDispatchAuthList(virNetServerPtr s
|
||||
} else if (callerUid == 0) {
|
||||
char *ident;
|
||||
if (virAsprintf(&ident, "pid:%lld,uid:%d",
|
||||
@ -42,7 +42,7 @@ index 1cea942..a57656c 100644
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2593,8 +2593,6 @@ remoteDispatchAuthPolkit(virNetServerPtr server,
|
||||
@@ -2592,8 +2592,6 @@ remoteDispatchAuthPolkit(virNetServerPtr
|
||||
struct daemonClientPrivate *priv =
|
||||
virNetServerClientGetPrivateData(client);
|
||||
|
||||
@ -51,6 +51,3 @@ index 1cea942..a57656c 100644
|
||||
virMutexLock(&priv->lock);
|
||||
|
||||
action = virNetServerClientGetReadonly(client) ?
|
||||
--
|
||||
1.7.7
|
||||
|
@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Feb 15 22:00:42 MST 2012 - jfehlig@suse.com
|
||||
|
||||
- Add upstream patches to fix issues with older PolicyKit
|
||||
c05ec920-polkit0-build.patch
|
||||
fcdfa31f-polkit0-auth.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Feb 15 11:57:25 MST 2012 - jfehlig@suse.com
|
||||
|
||||
|
@ -15,7 +15,6 @@
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
# For now, default to a full server + client build
|
||||
%define client_only 0
|
||||
|
||||
@ -404,7 +403,8 @@ Source1: libvirtd.init
|
||||
Source2: libvirtd-relocation-server.fw
|
||||
Source99: baselibs.conf
|
||||
# Upstream patches
|
||||
Patch0: a06fab95-polkit0.patch
|
||||
Patch0: c05ec920-polkit0-build.patch
|
||||
Patch1: fcdfa31f-polkit0-auth.patch
|
||||
# Need to go upstream
|
||||
Patch100: xen-name-for-devid.patch
|
||||
Patch101: clone.patch
|
||||
@ -540,6 +540,7 @@ Authors:
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
%patch100 -p1
|
||||
%patch101
|
||||
%patch102 -p1
|
||||
|
Loading…
Reference in New Issue
Block a user