The proposed patch from the systemd developers, somewhat worryingly, apparently does not address the failing open. It simply stops PolicyKit from excluding negative numbers as UIDs, and thus the assertion from failing. The worry is that some other assertion might trigger in the agent, or be introduced, that causes it to fail open in some other way. It should fail closed.
* https://gitlab.freedesktop.org/polkit/polkit/merge_requests/...
We have been down this road before with assertions.
Wrong. pkttyagent is just a frontend, it does not do any authorization itself. That's up to polkitd.
* https://github.com/systemd/systemd/issues/11026#issuecomment...
> unprivileged users with negative UID can successfully execute any systemctl command