canonical / ubuntu-desktop-provision

Ubuntu Desktop Provision
GNU General Public License v3.0
70 stars 31 forks source link

G-I-S Polkit for Pro and Landscape #386

Open matthew-hagemann opened 9 months ago

matthew-hagemann commented 9 months ago

As it stands, we need provd to run as root for setting up landscape and pro. This complicates setting gsettings at a user scope, and we need to find a way for provd to updating gsettings for a user will running as root.

We really want to keep the go bindings for many reasons, so we can't just do a syscall and call it a day :)

matthew-hagemann commented 9 months ago

The more I dig, the more it REALLY looks like gsettings is not designed for other users to access other users settings, and we don't want to spawn subprocesses.

So, what might be a good way forward is a polkit entry giving the g-i-s user access to pro attach and then running everything else as the g-i-s user.