# vim:syntax=apparmor

#include <tunables/global>

# Define vars with unconfined since autopilot rules may reference them
# Specified profile variables
@{APP_APPNAME}="terminal"
@{APP_ID_DBUS}="com_2eubuntu_2eterminal_5fterminal_5f0_2e7_2e198"
@{APP_PKGNAME_DBUS}="com_2eubuntu_2eterminal"
@{APP_PKGNAME}="com.ubuntu.terminal"
@{APP_VERSION}="0.7.198"
@{CLICK_DIR}="{/custom/click,/opt/click.ubuntu.com}"

# TODO: when v3 userspace lands, use:
# profile "com.ubuntu.terminal_terminal_0.7.198" (unconfined) {}

# v2 compatible wildly permissive profile
profile "com.ubuntu.terminal_terminal_0.7.198" (attach_disconnected) {
  capability,
  network,
  / rwkl,
  /** rwlkm,
  /** pix,

  mount,
  remount,
  umount,
  dbus,
  signal,
  ptrace,
  unix,
}
