# DeepLink bundled engine (Electron / Chromium). Ubuntu 23.10+ refuses unprivileged user namespaces to unconfined
# programs; Chromium's renderer sandbox needs one. This profile allows exactly that for the engine binary and
# confines nothing else (same approach as Ubuntu's own profiles for Chrome / Electron apps). The package never ships
# a setuid sandbox helper; without user namespaces the engine does not start and the app keeps its WebKitGTK window.
abi <abi/4.0>,
include <tunables/global>

profile deeplink-remote-engine /usr/lib/deeplink-remote/engine/deeplink-engine flags=(unconfined) {
  userns,

  include if exists <local/deeplink-remote-engine>
}
