Possible PolicyKit issues

Joe Marcus Clarke marcus at freebsd.org
Mon Apr 21 10:40:48 PDT 2008


David Zeuthen wrote:
> On Sat, 2008-04-19 at 01:34 -0400, Joe Marcus Clarke wrote:
>> I'm seeing a few PK problems on FreeBSD, but I'm not sure if this is a
>> problem with our port, or an issue in general.  First, all of the tests
>> David mentioned earlier (with polkit-auth) work.  The built-in tests
>> also appear to work.  PK consumers also seem to work.
>>
>> What I'm noticing is that PolicyKit-gnome doesn't update in real-time.
>> For example, if I launch polkit-gnome-authorization, then change a
>> policy, the changes don't reflect in the GUI until I restart
>> polkit-gnome-authorization.  Also, I'm not seeing any UI changes in
>> polkit-gnome-example when I click on the various buttons (though
>> polkit-gnome-manager does launch).  I also don't see polkitd launch
>> ever.
>>
>> If these are not typical problems, any idea where I can look to try and
>> fix these problems?
>>
>> I do notice that if I enter an incorrect password in a PK-gnome dialog,
>> polkit-gnome-manager enters an infinite loop since the auth file
>> descriptor is at EOF.  When a file stream goes EOF on FreeBSD, poll will
>> continually return with available input data until the EOF is handled
>> (unlike other OSes which emit a G_IO_HUP event).  The fix I found was to
>> return FALSE in polkit-gnome-manager.c's io_watch_have_data().  I have
>> noticed any change in behavior other than fixing the loop problem.
>>
>> Any comments or guidance would be appreciated.
> 
> Just a note to say I'm looking into these issues right now; I'll reply
> to both this mail and the mail with the patch set later today. Thanks.

Thanks, David.

Joe

-- 
Joe Marcus Clarke
FreeBSD GNOME Team	::	gnome at FreeBSD.org
FreeNode / #freebsd-gnome
http://www.FreeBSD.org/gnome


More information about the hal mailing list