|
|
|
|
|
by crest
3437 days ago
|
|
Sudo and polkit are so complicated because they solve the wrong problem. The common problem is how do I execute code under a different effective user id. Instead they try to solve a much harder superset: how to securely implement a policy defining who is allowed to execute what under which effective user id in a setuid executable. There are much simpler solutions without setuid: https://skarnet.org/software/s6/s6-sudo.html. |
|
Polkit just also ships with pkexec and similar things in the sudo mindset.