Date: Sat, 4 Jul 2009 17:29:55 GMT From: Gustau Pérez <gustau.perez@gmail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/136328: Policykit-gnome doesn't bring the auth dialog when not root Message-ID: <200907041729.n64HTtXs065055@www.freebsd.org> Resent-Message-ID: <200907041740.n64He3E8046853@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200907041729.n64HTtXs065055>