NinjaSurfer Docs / System components ← Back to the site
Docs · System components

System components

Two parts of a NinjaSurfer launch need the computer's administrator: the Chromium sandbox helper on Linux hosts that restrict user namespaces, and the network module that gives a persona the TCP/IP fingerprint of its OS. Nothing installs them silently: Desktop offers the install and the operating system asks for an administrator's approval (polkit on Linux, the macOS password prompt, Windows UAC). No password passes through NinjaSurfer.

When you need them

Commands

Check, install and remove (the installs ask for the administrator's approval):

sh
ninjasurfer system status
ninjasurfer system install sandbox [--cache-dir DIR]
ninjasurfer system install netstack [--user NAME] [--browser-version X]
ninjasurfer system uninstall sandbox|netstack [--user NAME]

From code: runtimeStatus() reports both items and installSystemComponent("sandbox" | "netstack") installs one (see the SDK guide).

Containers

In a Dockerfile, create the runtime user first, then:

sh
RUN ninjasurfer system install netstack --user <runtime user>

A hardened container (--cap-drop ALL, no-new-privileges, a non-root user) cannot run the network module: no-new-privileges voids its file capability and sudo. There a Windows, macOS or Android persona starts only through a proxy or a VPN; a direct start is refused with NETSTACK_NEEDED. A VPN needs outbound UDP and the CDN downloads, which Docker's default network allows (--network none does not). For direct connections use a VM, or a container that keeps CAP_SYS_ADMIN and CAP_NET_ADMIN and allows new privileges.

Offline starts and VPN helpers

The VPN helpers and the network module come from the signed components catalog. A component already downloaded is used with no network request for 24 hours after the catalog was last accepted, after its signature, expiry, revocations, size and hash are checked again. After that, or when any check fails, the catalog is read again first. A component revoked within that window is refused from the first launch after it.