Tested with Firefox fails with a Landlock error:
Error: add landlock rule for /dev/null: invalid argument
Error: an error occurred while running cpak: container failed before readiness: EOF
Steps to reproduce:
cpak install github.com/containerpak/firefox
cpak run github.com/containerpak/firefox firefox
Environment:
- OS: NixOS
- Architecture: linux/amd64
- cpak version: v2.0.0 (cpak-linux-amd64)
cpak doctor output:
[OK] Linux: linux/amd64
[OK] unprivileged user namespaces: user, mount, PID, IPC, UTS, network and cgroup namespaces can be created
[OK] rootless OverlayFS: overlay mount with userxattr succeeded in a user namespace
[OK] mount_setattr: mount_setattr is available
[OK] seccomp: seccomp filter actions are available
[OK] Landlock: Landlock ABI 7
[WARN] cgroup v2 delegation: /sys/fs/cgroup/user.slice/user-1000.slice/session-2.scope is not delegated to the current user
[OK] host init: systemd
[OK] desktop display: X11 display :0.0
[OK] desktop audio: PipeWire socket /run/user/1000/pipewire-0
[OK] host command bridge: built into cpak and restricted by each application policy
Additional notes:
- Landlock ABI 7 is reported as available by cpak doctor.
- The error happens during sandbox setup, before the application even starts.
- Verbose mode is also broken (unknown flag: --debug).
- This issue was debugged and written with the help of Grok.
Happy to provide more info if needed.
Tested with Firefox fails with a Landlock error:
Steps to reproduce:
Environment:
cpak doctor output:
Additional notes:
Happy to provide more info if needed.