What is Nostr?
Tóth Gábor Baltazár /
npub1n3w…s4gq
2025-02-17 20:15:03

Tóth Gábor Baltazár on Nostr: I just found out how polkit is implemented and I'm horrified you have a GUI running ...

I just found out how polkit is implemented and I'm horrified

you have a GUI running as a regular user that asks for your password and then gives it to the linked helper SUID binary

and this binary then checks it and sends a message to the polkit daemon that you entered the correct password

(technically it's more complicated because PAM)

I thought this was in the daemon, why is it in a SUID binary???

https://github.com/polkit-org/polkit/blob/main/src/polkitagent/polkitagenthelper-pam.c
Author Public Key
npub1n3w0dujvls8z3eyvv6zjdssqx3c54xeptxdzxf9ashqq6pckftgqv2s4gq