--- Comment #18 from Sebastian Krahmer email@example.com 2014-03-26 10:34:10 UTC --- @Raymond,
I see that uid comes via
return polkit_unix_user_get_uid((PolkitUnixUser *) subject());
my question is how is it constructed into the subject at the first place, as it was originally a process subject and I doubt the uid will magically appear by just type-casting it to a PolkitUnixUser *.
If thats taken from the unix socket credentials - thats OK.
If thats filled in by polkit libs itself since it reads /proc/$pid/status when no uid is explicitely given on construction, then its a NULL patch and we should not waste time making updates for it. :)
(Serious, I am not deep enough into KDE and QT to see immediately which of both is the case, but I fear its the later.)
I wonder whether just using SystemBusNameSubject would be so intrusive? I am sorry for playing the bad cop here but I am not yet convinced that the patch makes sense.