run0
run0
Posted Dec 17, 2025 10:07 UTC (Wed) by mchapman (subscriber, #66589)In reply to: run0 by intelfx
Parent article: Conill: Rethinking sudo with object capabilities
As far as I know this is supposed to happen already.
A polkit agent is always registered against a particular process or logind session. When polkit needs to talk to an agent, it determines it according to the subject of the authorization: either that process itself (i.e. it's acting as its own agent), or the logind session that owns that process.
Where I have seen this break is when people start Tmux or Screen in their GUI session, then, at a later time, reconnect to that over SSH. When they reconnect to it they are effectively back in that GUI session, even if they aren't sitting at that seat.
