Create correct AppArmor configuration for nightly curror

Hey, thanks for the report. This is a known issue. The AppArmor profile shipped with Cursor is missing a few rules like network, capability net_admin, and others. This affects both stable and nightly builds on Linux when AppArmor is enabled and you’re on kernel 6.2+.

A fix was recently shipped on the stable side. Your nightly build (2.7.0-pre.11 from March 2) likely doesn’t include it yet. Try updating to the latest nightly. The corrected profile should be in newer builds.

If you’re still seeing the issue after updating, the workaround you found is the right approach. Add network unix dgram, and capability net_admin, to /etc/apparmor.d/cursor-nightly-sandbox, then reload with sudo systemctl reload apparmor.

If you want a more complete profile, you can also add abi <abi/4.0>, and include <tunables/global> at the top, plus capability dac_override,. This thread has the full suggested profile: AppArmor cursor-sandbox profile incomplete on Linux

One heads-up: Cursor updates may overwrite /etc/apparmor.d/cursor-nightly-sandbox, so you might need to reapply the fix after updates until the corrected profile ships in nightly.

Let me know if the latest nightly fixes it.

1 Like