Root from the phone
When an agent needs root through dvarapala, or an app asks for admin rights through pramana (polkit), the request appears on your phone with exactly what will run and why: a notification that opens ekatva, at the same time as the window on the laptop. Answer on either one; the first answer counts, and the other closes.
Approve it with the laptop’s password (your sudo password there), typed on
the phone. It goes end to end into that prompt, and nowhere else: sudo on the
laptop checks it, it’s never logged (the action log shows [redacted]) and
never stored. The phone’s fingerprint opens ekatva; it never stands in for the
laptop’s password.
This is the root capability: off unless you grant it, per phone, and every use takes the laptop’s password.
How it stays safe
Section titled “How it stays safe”- ekatva never runs anything as root. dvarapala’s window hands its request to
ekatva over
ekatva-root.sock(in your runtime directory, only you can open it); your answer comes back into that window, which ticks the commands you chose and fills its password field, then goes through its ownsudocheck and runner, exactly as if you had typed it there. - What you see is what runs: the phone shows the window’s own request, command by command, with the agent’s reason.
- The window never sends a password out, and finds ekatva by your user id, not by the environment the agent controls.
- A wrong password comes back to the phone so you can try again; answering on either side clears the request on both.