PolicyKit: Branch 'master'

David Zeuthen david at kemper.freedesktop.org
Tue May 6 09:47:56 PDT 2008


 polkitd/polkit-daemon.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 15ae6e6acea3b1d1085d214294465fafc45af54b
Author: David Zeuthen <davidz at redhat.com>
Date:   Tue May 6 12:45:28 2008 -0400

    always allow uid 0 to ask about authorizations for anyone

diff --git a/polkitd/polkit-daemon.c b/polkitd/polkit-daemon.c
index d9f0a6a..1de7d79 100644
--- a/polkitd/polkit-daemon.c
+++ b/polkitd/polkit-daemon.c
@@ -412,7 +412,7 @@ is_caller_authorized (PolKitDaemon          *daemon,
         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 
                  */


More information about the hal-commit mailing list