secubox-deb/image/sbin
CyberMind e0e3a335d4
fix(kiosk): always pass --no-sandbox on Debian 12 AppArmor (closes #224) (#225)
On bare-metal x86_64 with the v2.10.0 image, chromium's zygote crashes
in a restart loop:

  ERROR:content/browser/zygote_host/zygote_host_impl_linux.cc(...):
  ... disabled unprivileged user namespaces with AppArmor,
  ... you can try using --no-sandbox.

Debian 12 ships AppArmor with the `unprivileged_userns` profile that
restricts the unprivileged user namespace creation chromium's zygote
needs to set up its renderer sandbox. The kernel sysctl
`kernel.unprivileged_userns_clone` is `1`, but the AppArmor profile
whitelists only known binaries — chromium launched as the
`secubox-kiosk` user doesn't match.

`secubox-kiosk-launcher:443-451` only passed `--no-sandbox` for VM
targets (`systemd-detect-virt` non-`none`). On bare metal it omitted
the flag, so the zygote died on every launch → systemd restart loop
until MAX_FAILURES=3 disabled the kiosk and left X11 stranded on VT7.

Drop `--no-sandbox` from both branches. The SecuBox kiosk runs as a
dedicated unprivileged user on a single VT, AppArmor still enforces
its per-process chromium profile, and the appliance sits behind its
own WAF — chromium's internal sandbox provides marginal additional
security here while breaking the kiosk entirely.

Validated path: VBox kiosk continues to work; bare-metal x86_64 will
reach the SecuBox login form after this fix.

Co-authored-by: CyberMind-FR <gandalf@Gk2.net>
2026-05-19 13:16:51 +02:00
..
secubox-cmdline-handler feat(ui): Phase 11 version display & boot mode indicators (v1.7.0) 2026-04-14 11:52:38 +02:00
secubox-console-tui feat(x64): Add disk flasher for x64 live USB 2026-04-11 10:45:30 +02:00
secubox-factory-reset feat(kiosk): Add VirtualBox debug logging for X11 troubleshooting 2026-04-13 08:26:06 +02:00
secubox-flash-disk fix(install): Lenovo Error 1962 boot fix + wiki updates (v1.6.7.12) 2026-04-14 10:05:03 +02:00
secubox-flash-emmc fix(ebin): EspressoBin eMMC boot fixes 2026-04-20 07:59:42 +02:00
secubox-kiosk-launcher fix(kiosk): always pass --no-sandbox on Debian 12 AppArmor (closes #224) (#225) 2026-05-19 13:16:51 +02:00
secubox-kiosk-setup fix(kiosk): Use localhost URL for network-independent operation 2026-04-10 12:48:05 +02:00
secubox-mode feat(boot): CRT-style banners with colors and emoji indicators 2026-04-04 12:16:40 +02:00
secubox-net-detect fix(net-detect): Separate VirtualBox VM handling from baremetal x64 2026-05-01 17:33:31 +02:00
secubox-net-reset fix(network): Fix x64-live netplan for real AMD64 hardware 2026-05-01 06:44:08 +02:00
secubox-overlay-init feat(kiosk): Add VirtualBox debug logging for X11 troubleshooting 2026-04-13 08:26:06 +02:00
secubox-ramcache feat(kiosk): Add VirtualBox debug logging for X11 troubleshooting 2026-04-13 08:26:06 +02:00
secubox-snapshot feat(kiosk): Add VirtualBox debug logging for X11 troubleshooting 2026-04-13 08:26:06 +02:00
secubox-x11-splash feat(kiosk): Add zenity progress splash before Chromium (v1.6.7.5) 2026-04-13 10:16:14 +02:00