# Installed by Q-VPN (DEC-107), only where AppArmor 4 is (Ubuntu 24.04 and later).
#
# Those releases forbid unprivileged user namespaces to anything without a profile that allows
# them, and Chromium's sandbox -- so Electron's, so this app's -- is built on them: without this,
# the app exits at start with "The SUID sandbox helper binary was found, but is not configured
# correctly". The profile confines nothing else; it is the same one Ubuntu ships for browsers.
abi <abi/4.0>,
include <tunables/global>

profile q-vpn /opt/Q-VPN/q-vpn flags=(unconfined) {
  userns,

  include if exists <local/q-vpn>
}
