Skip to main content

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 pad can write never grants root. settings.json, the list of allowed computers, anything in /home can 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 in taunus-authd, encryption keys in taunus-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):

ReleaseDebug
tdtone computer, USB only, confirmed with the passcodeconfirm with a tap, also over Wi-Fi
SSH, serial login, sunoneyes
Rooted debuggingUSB, 6+ digit passcode, ends after a restartcan 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.