From owner-freebsd-ports-bugs@FreeBSD.ORG Sat Jul 4 17:40:04 2009 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3702A1065670 for ; Sat, 4 Jul 2009 17:40:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 120818FC0C for ; Sat, 4 Jul 2009 17:40:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n64He3Xf046854 for ; Sat, 4 Jul 2009 17:40:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n64He3E8046853; Sat, 4 Jul 2009 17:40:03 GMT (envelope-from gnats) Resent-Date: Sat, 4 Jul 2009 17:40:03 GMT Resent-Message-Id: <200907041740.n64He3E8046853@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Gustau Pérez Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 51718106564A for ; Sat, 4 Jul 2009 17:29:56 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 3F3858FC1F for ; Sat, 4 Jul 2009 17:29:56 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n64HTu0W065056 for ; Sat, 4 Jul 2009 17:29:56 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n64HTtXs065055; Sat, 4 Jul 2009 17:29:55 GMT (envelope-from nobody) Message-Id: <200907041729.n64HTtXs065055@www.freebsd.org> Date: Sat, 4 Jul 2009 17:29:55 GMT From: Gustau Pérez To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/136328: Policykit-gnome doesn't bring the auth dialog when not root X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Jul 2009 17:40:04 -0000 >Number: 136328 >Category: ports >Synopsis: Policykit-gnome doesn't bring the auth dialog when not root >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Jul 04 17:40:03 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Gustau Pérez >Release: 7.2 STABLE >Organization: >Environment: FreeBSD gusiport 7.2-STABLE FreeBSD 7.2-STABLE #3: Thu Jun 25 10:35:14 CEST 2009 gus@gusiport:/usr/obj/usr/src/sys/CUSTOM i386 >Description: I'm having troubles using policykit-gnome. My system is a clean 7.2 STABLE, all ports removed and recompiled. /usr/local completely clean. If I log as a normal user and if I try to change some actions with policykit-gnome, it doesn't bring me the auth dialog. If I log as root, I can change everything. If I remember well I thing the same happened with CURRENT, but can't confirm it right now. I checked 'policykit -> Modify defaults for implicit authorization', which gave me 'Admin Authentication' (the default value). My ${LOCALBASE}/etc/PolicyKit/PolicyKit.conf allows root to do anything and defines an admin group. If I add a user and allow him to do anything (by editing PolicyKit.conf) , then it works. So that made me think the problem is related to policykit-gnome. I'm attaching a patch which fixes the problem. >How-To-Repeat: Log into gnome as a non root user, gnome -> system -> preferences -> authorization and try to change a default config. >Fix: Patch attached with submission follows: --- polkit-gnome/polkit-gnome-action.c.old 2009-06-28 12:54:35.000000000 +0200 +++ polkit-gnome/polkit-gnome-action.c 2009-06-28 12:55:07.000000000 +0200 @@ -2062,6 +2062,8 @@ case POLKIT_RESULT_ONLY_VIA_SELF_AUTH_KEEP_ALWAYS: /* g_debug ("blocking clicked"); */ g_signal_stop_emission_by_name (button, "clicked"); + if (action->priv->polkit_action != NULL) + g_signal_emit (action, signals [AUTH_START_SIGNAL], 0); break; default: >Release-Note: >Audit-Trail: >Unformatted: