Security model
Principles
- Root has no password. There is no way from the session user to root except the rooted-debugging switch, which needs the passcode and (in release builds) the USB cable.
- What
padcan write never grants root.settings.json, the list of allowed computers, anything in/homecan be changed by any program of the user, so nothing root does depends on them. - Secrets stay in one place. Account passwords and tokens in
taunus-accountsd, the passcode intaunus-authd, encryption keys intaunus-keyd. Other programs get views, proofs or nothing. - Root services check the binary, not a name. See System services.
- Apps are sandboxed from the shell's powers: they connect to the compositor through a security context, so they can't draw over other apps, read the screen or type into other windows.
Release and debug
The difference is made at build time only (BUILD_TYPE, cargo feature debug-build):
| Release | Debug | |
|---|---|---|
| tdt | one computer, USB only, confirmed with the passcode | confirm with a tap, also over Wi-Fi |
SSH, serial login, su | none | yes |
| Rooted debugging | USB, 6+ digit passcode, ends after a restart | can be kept |
Known gaps
//2bi: apps run as the same user as each other and can read each other's files. Each app gets its own data directory that only it can read (Landlock or a per-app user), and services check which app calls.
//2bi: setting the first passcode needs a proof of presence at the device (a hardware button), so a program can't set one silently.
//2bi: the TV auto-pairing accepts only remotes of known vendors, or asks for a confirmation press.