run0 vs capsudo?
run0 vs capsudo?
Posted Dec 14, 2025 22:45 UTC (Sun) by nickodell (subscriber, #125165)In reply to: run0 by mb
Parent article: Conill: Rethinking sudo with object capabilities
Where they differ is in two things:
1) How many daemon processes may run?
2) How is a user allowed or disallowed to run a command?
1) IIUC, systemd runs a single run0 process, as root, and all authorization decisions are made inside this process. In contrast, capsudo runs as many processes as there are delegated permissions. Each capsudo process may run at a different privilege level.
2) systemd uses polkit to determine whether a user is allowed to run a command. In contrast, capsudo allows a user to specify the command when creating the capability object. Which users are permitted to use the object is determined by standard Linux permissions on the unix socket used to perform RPC.
So, they share some attributes, but I would say that run0 is more similar to sudo than capsudo is similar to sudo.
