rpms/ConsoleKit/devel polkit-result.patch, NONE, 1.1 ConsoleKit.spec, 1.26, 1.27
Matthias Clasen (mclasen)
fedora-extras-commits at redhat.com
Sun Apr 6 02:31:15 UTC 2008
- Previous message: rpms/gdm/devel gdm.spec,1.359,1.360 sources,1.82,1.83
- Next message: rpms/PackageKit/devel .cvsignore, 1.11, 1.12 PackageKit.spec, 1.20, 1.21 sources, 1.11, 1.12
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: mclasen
Update of /cvs/extras/rpms/ConsoleKit/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv2099
Modified Files:
ConsoleKit.spec
Added Files:
polkit-result.patch
Log Message:
Return PolicyKit results when not privileged.
polkit-result.patch:
--- NEW FILE polkit-result.patch ---
diff -up ConsoleKit-0.2.10/src/ck-manager.c.polkit-result ConsoleKit-0.2.10/src/ck-manager.c
--- ConsoleKit-0.2.10/src/ck-manager.c.polkit-result 2008-04-05 19:01:36.000000000 -0400
+++ ConsoleKit-0.2.10/src/ck-manager.c 2008-04-05 19:01:41.000000000 -0400
@@ -1123,8 +1123,8 @@ _check_polkit_for_action (CkManager
if (pk_result != POLKIT_RESULT_YES) {
error = g_error_new (CK_MANAGER_ERROR,
CK_MANAGER_ERROR_NOT_PRIVILEGED,
- "Not privileged for action: %s",
- action);
+ "Not privileged for action: %s %s",
+ action, polkit_result_to_string_representation (pk_result));
dbus_error_free (&dbus_error);
dbus_g_method_return_error (context, error);
g_error_free (error);
Index: ConsoleKit.spec
===================================================================
RCS file: /cvs/extras/rpms/ConsoleKit/devel/ConsoleKit.spec,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -r1.26 -r1.27
--- ConsoleKit.spec 14 Mar 2008 21:45:22 -0000 1.26
+++ ConsoleKit.spec 6 Apr 2008 02:30:05 -0000 1.27
@@ -6,7 +6,7 @@
Summary: System daemon for tracking users, sessions and seats
Name: ConsoleKit
Version: 0.2.10
-Release: 2%{?dist}
+Release: 3%{?dist}
License: GPLv2+
Group: System Environment/Libraries
URL: http://www.freedesktop.org/wiki/Software/ConsoleKit
@@ -24,6 +24,8 @@
BuildRequires: zlib-devel
BuildRequires: xmlto
+Patch0: polkit-result.patch
+
%description
ConsoleKit is a system daemon for tracking what users are logged
into the system and how they interact with the computer (e.g.
@@ -75,6 +77,7 @@
%prep
%setup -q
+%patch0 -p1 -b .polkit-result
%build
%configure --with-pid-file=%{_localstatedir}/run/console-kit-daemon.pid --enable-pam-module --with-pam-module-dir=/%{_lib}/security --enable-docbook-docs --docdir=%{_datadir}/doc/%{name}-%{version}
@@ -154,6 +157,9 @@
%doc %{_datadir}/doc/%{name}-%{version}/spec/*
%changelog
+* Sat Apr 5 2008 Matthias Clasen <mclasen at redhat.com> - 0.2.10-3
+- Return PolicyKit results
+
* Fri Mar 14 2008 Matthias Clasen <mclasen at redhat.com> - 0.2.10-2
- Fix trivial dir ownership issue
- Previous message: rpms/gdm/devel gdm.spec,1.359,1.360 sources,1.82,1.83
- Next message: rpms/PackageKit/devel .cvsignore, 1.11, 1.12 PackageKit.spec, 1.20, 1.21 sources, 1.11, 1.12
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the scm-commits
mailing list