Possible PolicyKit issues

Joe Marcus Clarke marcus at FreeBSD.org
Fri Apr 18 22:34:25 PDT 2008


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.

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
Url : http://lists.freedesktop.org/archives/hal/attachments/20080419/1ab2ffff/attachment.pgp 


More information about the hal mailing list