# vim:syntax=apparmor

#include <tunables/global>

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

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

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

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