The short version#
An installable LordOS app (a .lpk package) doesn't get the keys to your house. It runs in a room of its own, with the door locked from the outside. When it needs something, it asks the system through a single hatch, the broker. The system checks what you decided, and if you haven't decided yet, it asks you with a prompt that the system draws, not the app. For now only LordOS's own .lpk apps can be installed; apps from other authors are planned for LordOS 1.0, and this room is what they will get.

Three ideas do most of the work:
- Isolation. Each
.lpkapp is its own process, locked in with Linux kernel features before any of its code runs. - Mediation. Everything that touches your things (files, camera, microphone, clipboard, passwords) goes through the broker in
lord-server, which checks the permission on every request. - Your decision, stored where the app can't reach it. Decisions live in
~/.config/lordos/permisos.json, which isolated apps cannot see or write.
How a permission request travels
- YouIsolated appAsks through the broker socketthen request
- OursBroker in lord-serverLooks up the stored decision (perms.c)then state is Ask
- OursSystem promptOnly if not decided yet; drawn by the sessionthen shown
- YouYou decideAllow or Don't Allow, saved in permisos.jsonthen answer
- KernelEnforcedBroker checks every call; sandbox and kernel block the restthen later
- AllowedRevocableSettings → Privacy; camera and microphone stop at once
Legend: YouOursKernelAllowed
Which apps are isolated, exactly?#
This is the first question a careful reader should ask, so here is the precise answer:
| Kind of app | Own process | Sandbox (Landlock + seccomp) | Per-app cgroup | Broker and permissions | Per-app firewall |
|---|---|---|---|---|---|
Installed .lpk apps | yes | yes | yes, with memory and CPU limits | yes | yes |
| Passwords, Mail, Calendar, Contacts and Reminders (built-in apps in their own process; the last four since 0.8.2) | yes | yes | yes | yes | yes |
| Other built-in apps (Files, Settings, Terminal…) | no, they run inside lord-server | no | no (they count as "LordOS") | their camera, microphone and screen use is checked in C | yes, as "LordOS" |
| Linux apps opened from the app launcher (apt, the Store) | yes, a normal process | no by default; with "no access to your files", their own namespaces and Landlock | yes, app-lordos-<id>.scope, no limits | no | yes, plus the restrictions you set (camera, microphone, USB, Bluetooth, files, notifications) |
| Programs started from the Terminal | yes | no | they share the Terminal's place in the tree | no | as "Terminal", with its own rules (since 0.8.5; before, as "LordOS") |
| Web apps (since 0.8.8.8, with the optional web engine) | yes, one lord-web per app and profile | WebKit's own sandbox (bubblewrap + seccomp) for the web content and network processes; lord-web itself has Landlock's scoping and no_new_privs, not LordOS's seccomp | yes, app-lordos-lordos-web-<app>.scope, with memory and CPU limits shared by the app's profiles | no broker; camera, microphone, screen, location and notifications are asked once per app by LordOS and revocable in Settings → Web apps | yes, one row per app |
So: Linux apps are not sandboxed by default. They run as your user, exactly as on any Debian system, and can read your home folder. What LordOS adds for them is attribution (the Monitor knows which app made each connection), the kernel-enforced per-app firewall, and the restrictions you choose for an app: no camera, no microphone, no USB, no Bluetooth sockets, no notifications, and "no access to your files", which from its next launch starts the app in its own namespaces with an empty home folder holding only its own folders. Flatpak is not used or integrated by LordOS, and it hasn't been tested.
Built-in apps are part of the system's own code, reviewed with it; most don't get the per-process isolation that third-party packages get. The exceptions are Passwords, because it holds your secrets, and, since 0.8.2, Mail, Calendar, Contacts and Reminders, because they read what arrives from the internet: each one runs as its own sandboxed process and reaches mail and your keyring only through broker requests allowed for that app alone.
How the sandbox works#
The sandbox is LordOS's own code (server/src/sec/sandbox.c), not bubblewrap, Flatpak or firejail. It uses kernel features directly, and it is applied after the app connects to the compositor and to the broker, and before any line of the app's code is loaded.
The walls around an installed app
- YouThe app's codeLoaded only after the walls are up
- KernelLandlockFiles: its package read-only, its own data folder read-write, nothing else of your home
- Kernelseccomp-bpfAn allow list of system calls; no exec, ptrace, mount or new sockets
- KernelNo privilegesno_new_privs, every capability dropped
- Kernelcgroup v2 scopeRoot-owned; 512 MB and one core at most; the firewall knows the app by it
Legend: YouKernel
- Landlock limits the files the process can touch: read-only access to its own package, the shared app runtime, fonts and libraries; read and write access only to
~/.local/share/lordos/appdata/<id>. Nothing else from your home folder, and no/dev. - seccomp-bpf is an allow list of system calls, applied to every thread. Calls like
ptrace,mount,bpf,execve,keyctland module loading are simply not on it. The app can't open new Unix sockets either, so it can't reach the session bus, the printing service or the Wayland socket on its own. - No privileges.
no_new_privsis set and every capability is dropped. - A cgroup of its own,
app-lordos-lpk-<id>.scope, with a soft memory limit of 192 MB, a hard one of 512 MB and at most one CPU core. The scope is created and owned by root (lord-sessiond), so the app can't move itself elsewhere. - Network only with permission. Without the
networkpermission, seccomp refuses to create internet sockets and Landlock refuses TCP connect and bind. With it (declared in the manifest and allowed by you), they are allowed, and the per-app firewall still applies.
Are namespaces used? Not for .lpk apps. lord-server runs without root, and creating a network namespace needs privileges it doesn't have. The design uses Landlock, seccomp and cgroups instead, and leaves the app in the machine's network namespace under the rules above. The one place LordOS uses namespaces is a Linux app restricted with "no access to your files": it starts in its own unprivileged user, mount and PID namespaces, built by LordOS's own code in the launcher, so it can't reach the session's sockets.
The project keeps a deliberately malicious test app (tests/lpk-evil). It declares no permissions and tries everything at start: reading ~/.ssh/id_rsa and settings.json, writing outside its folder, reading the clipboard silently, opening /etc/shadow, opening a socket, running /bin/sh, ptrace, opening the graphics card. Every attempt is blocked. The sandbox test suite passes 14 of 14 checks for apps, 14 of 14 with network and 17 of 17 for helpers.

What you see and decide#
- The prompt. The first time an app asks for something, the system shows: "App" wants to use the microphone — Allow / Don't Allow. The answer is saved for that app.
- Settings → Privacy lists each permission with the apps that asked for it, and the built-in apps that declare it, with an Allow / Ask / Deny control.
- One permission starts allowed (since 0.8.9.5): the built-in Screenshots app's screen, because pressing Print Screen is already asking for the capture. Set it to Deny in Settings → Privacy and that stays. Protected windows, such as Passwords, are still hidden in every capture, and Screenshots refuses to capture one on its own. Every password field and password prompt is protected the same way, so a password is never captured.
- Indicators. A green dot in the menu bar while the camera is in use, an orange one for the microphone. Tapping it shows which app. Since 0.8.9.5, one green pill by the clock replaces the dots and the screen-sharing pill. Its icon says what is captured right now (the screen, the camera, the microphone, or two of them), it can't be hidden, and clicking it lists each app with Stop sharing and Turn off for this app.
Permissions an app can declare: files, clipboard, notifications, network, camera, microphone, screen, listen, USB, Bluetooth and apps. An app can't get a permission it didn't declare.

The skeptical reader's questions#
Can the prompt be bypassed? Not by the isolated app. The prompt is drawn by the session, outside the app's window. The answer reaches lord-server directly, and the broker reads the stored decision in C on every request. The decisions file is outside what Landlock lets the app see, and lord.fs refuses to write it. An app could draw a fake dialog inside its own window, but clicking it changes nothing. The honest gap: a Linux app, which isn't sandboxed by default and runs as you, could edit permisos.json like any other file in your home, unless it is restricted with "no access to your files".
Do I get "Allow once" or "Allow always"? Today the prompt offers Allow and Don't Allow, and the decision is remembered until you change it in Settings. There is no "allow once" for app permissions yet.
Does an app get only the file I choose? Yes. To open or save, an isolated app calls the system file dialog. lord-server draws it (the "powerbox"), opens the file you picked with your permissions and passes the app only that file descriptor. The app never sees the folder or the rest of the disk. No extra permission is needed, because picking the file is the consent.

How are the camera and the microphone mediated? The app never opens the device.
- Microphone:
lord-serveropens the PipeWire capture stream and writes the audio into a shared ring; the app gets a read-only copy of it. - Camera:
lord-serveropens/dev/videoNand hands it only to the sandboxed media helper,lord-media, which decodes frames into a sealed shared ring. The app gets a read-only mapping and must acknowledge each frame;lord-servervalidates every acknowledgement (generation, slot, rate). Photos and videos go to a file you choose in the system's save dialog.
The camera without handing over the camera
- Kernel/dev/videoNOpened by lord-server after consentthen device fd
- Ourslord-mediaSandboxed decoder; frames into a sealed ringthen frame ring
- Ourslord-serverValidates every acknowledgementthen read-only reopen
- YouIsolated appRead-only view of the frames
Legend: KernelOursYou
Can permissions be revoked while the app runs? Yes, for the camera and the microphone: setting either to Ask or Deny in Settings stops it at once. For the camera, lord-server kills the app's lord-media process (tested: gone within 0.5 s); for the microphone, it closes the PipeWire stream. Checks like the clipboard apply on the next request. The network permission is decided when the app starts, so a change applies at the next launch; to cut a running app off the network immediately, use the firewall switch in the Monitor.

Can I make sure an app never gets the camera, whatever it asks? Yes: restrict it in Settings → Privacy → App network access. A firewall restriction beats any permission: the app is refused without a prompt even if you allowed it before, and restricting a running app takes its camera and microphone away at once. For isolated apps the broker enforces all eight restrictions (camera, microphone, screen, USB, files, clipboard, Bluetooth, notifications).
What about apps that need more privileges? There is no way for a .lpk app to get root or extra capabilities. Everything in LordOS that needs root goes through a closed list of validated actions (server/src/admin.c), and JavaScript can't run arbitrary commands. Linux apps behave as on any Debian system: if a program needs sudo, you run it yourself in the Terminal.
LordOS checks its own code before running it#
Since 0.8.2, every bundle LordOS runs as its own code (the themes with the shell and every native app, the login screen, the host of isolated apps and the system apps that run as their own process) is listed with its SHA-256 in a manifest signed with the LordOS release key (Ed25519). lord-server checks the signature with the public key compiled into it, and the hash of each bundle from the same read it loads, so there is no window to swap the file. A bundle that doesn't match is not run: the desktop falls back to another theme and says so, or shows a recovery screen that explains how to repair it, never a blank screen. About LordOS shows "Verified", or "Development build" for an unsigned development tree. This protects against changes by processes that aren't root and against offline modification; root can still replace lord-server itself, which a later phase (fs-verity, A/B images) is meant to cover.
Check it on your own computer (since 0.8.5)#
Since 0.8.5, System Information (About LordOS → System Report…) has a Checks tab that tests these claims on the computer in front of you: the display server without root, Landlock, the per-app firewall, verified code, the remote desktop closed when it's off, app scopes owned by the system. Each check says whether the mechanism was only found configured or was actually tried. Run tests starts the Sandbox Probe, a hidden test app that starts exactly like any isolated app and tries, inside the same sandbox, what it must not be able to do: your files and the system's, sockets, ptrace, a user namespace, mount, exec, leaving its scope. It also tries what the decoders' sandbox must refuse, and asks the broker for things it must deny. The probe never gets a permission or network access, and nothing is sent anywhere.

The helpers that read untrusted data#
Files from outside are the classic way in. LordOS opens them in small separate processes that are locked in even harder than apps: lord-doc (PDFs, archives, fonts), lord-media (video, music, photos, camera), lord-maild (mail, calendars, contacts) and lord-vault (passwords). They have no network, can't create sockets, can't run programs and can only create threads, not processes. They don't open paths: lord-server opens files and passes them as file descriptors. If seccomp can't be applied, the helper exits rather than run unconfined. A malicious PDF can crash lord-doc, but not the desktop. Since 0.8.5 lord-fetch (the firewall's blocklists) and lord-tls (the Store's HTTPS) are locked in the same way and can't create sockets either: they only get one connection that lord-server or the Store opened for them. Since 0.8.7 lord-lan reads what comes back from the local network for Files → Network the same way, with no sockets and no files, and lord-rdesk, Remote Desk's connection, is sandboxed once it has connected: no new sockets and no programs. LordBench's lord-bench (since 0.8.6) runs its workloads under the same lock. Since 0.8.8.7 lord-sftp speaks SFTP for the Terminal's Files mode over a channel of the tab's own ssh connection, and lord-sql speaks the MySQL protocol for each Databases connection; both are locked in the same way, with no sockets of their own and no paths. Cleaner's scanner lord-clean (since 0.8.7) and Machines' display helper lord-vmdisplay (since 0.8.8.5) are locked in the same way, and since 0.8.8.8 lord-screencast sends a screen or window you chose to share to a Linux app: it gets its PipeWire connections already opened by lord-server, and adds only timers to the helpers' lock. In 0.8.9 two more: lord-stream, the player for cameras, streams and TV, is the only helper with network, and only internet sockets (no local sockets, no programs, no files of yours), in a firewall row of its own, and it checks the server's certificate for https streams and lists (not for rtsps, which the media library can't check); and lord-hidpp reads the battery of Logitech mice and keyboards: it opens only those devices, gives up the one group that lets it open them and locks itself in before it asks them anything, and only for their battery.
Protected windows#
A window can be marked protected. Passwords is. In LordOS screenshots, screen recordings, thumbnails, the remote desktop and screen sharing it comes out as an opaque gray box with a lock and the words "Protected window", exactly where the window is, while the real monitor shows it normally (up to 0.8.9.5 it came out black). Since 0.8.9.6, an app can open a window protected from its first frame, and Machines protects the windows of a machine with the anonymity profile and keeps no picture of it on disk. Linux apps can't copy the screen on their own: the compositor offers them no capture protocol. Since 0.8.8.8 an app can ask through LordOS's ScreenCast portal, and only the screen or window you pick in LordOS's chooser is shared, while an indicator with Stop is on screen; protected windows stay hidden and an app restricted from screen capture is refused without a question. X11 apps (through Xwayland since 0.8.3) only see each other, never Wayland apps, LordOS's screen or Passwords, and a restricted app is also denied the framebuffer device.

An AI agent on your desktop, with your permission (since 0.8.9.6.2)#
Since 0.8.9.6.2: Hands lets an AI agent such as Claude Code use the LordOS desktop the way Claude in Chrome uses a browser. It connects through lordos-mcp (claude mcp add -s user lordos-mcp -- lordos-mcp), which talks to lord-server's org.lordos.Hands1 on the session bus. Instead of guessing from pixels, the agent reads LordOS's own UI tree: each button, field, menu and row with its role, name, state and a stable ref. It can list windows, open apps and files, click, type, scroll, take screenshots, set a field's value, read an app's log and record a GIF. No tool runs code, and its clicks and keys go through lord-server's own input path, never /dev/uinput.
- Off until you turn it on, in Settings → AI → Hands, for this session only.
- Each program asks first. A system prompt shows the name and program path it reports, marked as not verified, with This session or Deny. Only your real mouse and keyboard answer it.
- You see it and stop it. While an agent works, every display shows "Claude Code is using your computer" with Stop; Ctrl+Alt+Esc stops every agent and turns Hands off. Locking the screen stops it too, and when you touch the mouse or keyboard the agent waits 3 seconds.
- You watch it work. The agent has its own violet cursor, labelled with the name it gives ("reported", not verified). In human mode, the default, it glides to each button, pauses, then clicks, and types at a person's pace; machine mode acts at once and only flashes where it lands (Settings → AI → Hands → Agent motion). Your own pointer never moves for it. Since 0.8.9.6.3, the agent's cursor stays on the screen where it last acted for as long as the agent is in control, dimmed while it waits, and goes away only when the session ends.
- Optional allowlist ("Only these apps"), rate limits, and a log of what it did in closed words, never your text.
- Never within reach: permission, keyring, password and administrator prompts, password fields, protected windows, Settings → AI → Hands itself, destructive confirmations, the Store, the Updates, Sharing and Session pages, the lock screen and the login screen. Screenshots show them black. Privacy, Users, Network, Cloud, Web apps, Backups and Disks stay out of reach too, unless you lend that one window (below).
- It passes you the turn (since 0.8.9.6.3). When a step is yours alone (a sign-in on a web page, a password, a person-only page such as Backups or Settings → Network), the agent does everything up to it, shows a "Your turn" card with short steps and a marker on the control to press, and goes on by itself once you tap Done or it sees the step done. You can also lend it one window ("Let Claude prepare this window"): it fills in the fields there, but never sees passwords and never presses the final button, which stays marked for you; the window goes back when it changes page, closes or its time runs out.
- What it can't promise: programs running as you are one trust boundary on any desktop; LordOS doesn't claim to tell a real Claude Code from a program that says it is one, which is why it shows the name as reported and asks you.
- Test an app without touching your desktop:
lordos-mcp --headless notesstarts a private desktop nobody sees, with sample files, deleted when it ends.
It is checked by build/hands-test (608 checks), hands_model_test.mjs (95) and an end-to-end test with 153 checks on a headless desktop (importing a file in Notes, a permission prompt refused, the banner's Stop, a theme's trust dialog refused).
Honest limits#
- Linux apps are not sandboxed by default. Network rules, attribution and the restrictions you set apply to them; the restrictions don't cover the clipboard, Bluetooth through BlueZ on the system bus, the system bus in general, or programs started outside the app launcher.
- Camera and microphone use by Linux apps is shown only through PipeWire. Since 0.8.9.5 the green pill shows what they capture through PipeWire (before, nothing was shown); a program that opens the camera or the sound card itself, without PipeWire, still isn't shown.
- The broker doesn't cover everything yet. Permissions like Bluetooth or launching other apps can be declared, but there is no broker call for them, so an isolated app simply can't do those things.
- A missing kernel feature weakens the app sandbox quietly. If Landlock or a cgroup controller is missing, apps still start, with a warning in the log. Helpers, by contrast, refuse to run without seccomp.