Where does the bug appear (feature/product)?
Somewhere else…
Describe the Bug
The bug appear:
Remote SSH → Terminal Sandbox / Shell Exec
When connecting to an Ubuntu 22.04 VM running inside OrbStack via Remote SSH, Cursor displays:
Terminal sandbox could not start.
This may be caused by an AppArmor configuration on your Linux system (kernel 6.2+).
However, this environment does not use AppArmor.
After investigating, I confirmed:
-AppArmor is not present.
-User namespaces are enabled.
-Seccomp is enabled.
-Landlock is enabled.
-Cursor reports sandboxSupported=false.
The AppArmor recommendation appears to be generic and is misleading for OrbStack users.
Steps to Reproduce
- Install Cursor 3.14.7 on macOS.
- Create an Ubuntu 22.04 VM in OrbStack 2.2.2.
- Connect using Remote SSH.
- Open an Agent terminal (Shell Exec).
Cursor displays:
Terminal sandbox could not start. This may be caused by an AppArmor configuration on your Linux system (kernel 6.2+). See the documentation for how to resolve this.
Expected Behavior
Cursor should either:
- successfully initialize the terminal sandbox, or
- display the actual reason why sandbox initialization failed.
The AppArmor recommendation should only be shown if AppArmor is actually detected or involved.
Operating System
Linux
Version Information
Version: 3.14.7
VS Code Extension API: 1.128.0
Commit: a758f2241ca99fecf380180b6cbdbbce0f1f42c0
Date: 2026-07-30T06:41:34.009Z
Layout: IDE
Build Type: Stable
Release Track: Default
Electron: 40.10.3
Chromium: 144.0.7559.236
Node.js: 24.15.0
V8: 14.4.258.32-electron.0
xterm.js: 6.1.0-beta.291
OS: Darwin arm64 25.6.0
Remote kernel:
Linux 7.0.14-orbstack
For AI issues: which model did you use?
n/a
For AI issues: add Request ID with privacy disabled
n/a
Additional Information
Kernel capabilities:
CONFIG_NAMESPACES=y
CONFIG_USER_NS=y
CONFIG_SECCOMP=y
CONFIG_SECCOMP_FILTER=y
CONFIG_SECURITY_LANDLOCK=y
CONFIG_BPF_LSM=y
AppArmor:
aa-status
apparmor not present
User namespaces work:
unshare --user --map-root-user id
Mount namespaces fail without elevated privileges:
unshare --mount
Operation not permitted
The bundled cursorsandbox binary contains support for:
- Landlock
- Bubblewrap
- Automatic backend selection
It also contains messages including:
- Step 3/7 (remount / as MS_PRIVATE) failed: Operation not permitted
- Bubblewrap namespace setup failed
- Linux auto backend selection failed
The renderer logs show that Cursor displays the AppArmor notification whenever sandboxSupported == false and the detected Linux kernel version is >= 6.2.
The notification appears even though AppArmor is not installed or enabled.
Could you clarify whether OrbStack is currently supported for Terminal Sandbox, or if this is a detection issue? If not supported, it would be helpful if Cursor displayed the actual backend failure instead of the generic AppArmor recommendation.
Does this stop you from using Cursor
Yes - Cursor is unusable