vmihalko / t2_polkit

Other
0 stars 0 forks source link

user_of_subject is NULL if DBus provides groups - [opened] #401

Open vmihalko opened 9 months ago

vmihalko commented 9 months ago

In GitLab by @jrybar on Sep 27, 2023, 17:00

Merges dbus-getconnection-preserve-username -> master

Implementation of DBus-provided groups introduced a bug in retrieving user_of_subject UID, which was always NULL if groups were provided by DBus. This value propagated into JS scripts where user_of_subject was completely missing and some .rules files were evaluated incorrectly (broken polkit-pkla-compat and inherently Gnome Shell).