rpms/PolicyKit/F-9 policykit-allow-root-to-read-auth.patch, NONE, 1.1 PolicyKit.spec, 1.18, 1.19
Bastien Nocera (hadess)
fedora-extras-commits at redhat.com
Mon Jun 30 15:57:25 UTC 2008
Author: hadess
Update of /cvs/pkgs/rpms/PolicyKit/F-9
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv6778
Modified Files:
PolicyKit.spec
Added Files:
policykit-allow-root-to-read-auth.patch
Log Message:
* Mon Jun 30 2008 - Bastien Nocera <bnocera at redhat.com> - 0.8-3%{?dist}
- Upstream patch to allow root to read auths
policykit-allow-root-to-read-auth.patch:
--- NEW FILE policykit-allow-root-to-read-auth.patch ---
From: David Zeuthen <davidz at redhat.com>
Date: Tue, 6 May 2008 16:45:28 +0000 (-0400)
Subject: always allow uid 0 to ask about authorizations for anyone
X-Git-Url: http://gitweb.freedesktop.org/?p=PolicyKit.git;a=commitdiff;h=15ae6e6acea3b1d1085d214294465fafc45af54b
always allow uid 0 to ask about authorizations for anyone
---
--- a/polkitd/polkit-daemon.c
+++ b/polkitd/polkit-daemon.c
@@ -412,7 +412,7 @@ is_caller_authorized (PolKitDaemon
if (!polkit_caller_get_uid (pk_caller, &uid_caller))
goto out;
- if (uid_caller_who_wants_to_know != uid_caller) {
+ if (uid_caller_who_wants_to_know != 0 && uid_caller_who_wants_to_know != uid_caller) {
/* if the uid's are different, the caller who wants to know need to posses
* the org.freedesktop.policykit.read authorization
*/
Index: PolicyKit.spec
===================================================================
RCS file: /cvs/pkgs/rpms/PolicyKit/F-9/PolicyKit.spec,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- PolicyKit.spec 17 Apr 2008 03:04:30 -0000 1.18
+++ PolicyKit.spec 30 Jun 2008 15:56:42 -0000 1.19
@@ -14,11 +14,13 @@
Summary: Authorization Toolkit
Name: PolicyKit
Version: 0.8
-Release: 2%{?dist}
+Release: 3%{?dist}
License: MIT
Group: System Environment/Libraries
URL: http://gitweb.freedesktop.org/?p=PolicyKit.git;a=summary
Source0: http://hal.freedesktop.org/releases/%{name}-%{version}.tar.gz
+# http://gitweb.freedesktop.org/?p=PolicyKit.git;a=commitdiff;h=15ae6e6acea3b1d1085d214294465fafc45af54b
+Patch0: policykit-allow-root-to-read-auth.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
Requires(post): chkconfig
Requires(preun): chkconfig
@@ -73,6 +75,7 @@
%prep
%setup -q
+%patch0 -p1 -b .root
%build
%configure
@@ -166,6 +169,9 @@
%{_datadir}/gtk-doc/html/polkit/*
%changelog
+* Mon Jun 30 2008 - Bastien Nocera <bnocera at redhat.com> - 0.8-3%{?dist}
+- Upstream patch to allow root to read auths
+
* Wed Apr 16 2008 David Zeuthen <davidz at redhat.com> - 0.8-2%{?dist}
- Fix permissions and modes
More information about the scm-commits
mailing list