# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2026 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only

abi <abi/4.0>,

include <tunables/global>

@{exec_path} = @{bin}/vapoursynth
@{att} = /att/vapoursynth/
profile vapoursynth /{,usr/}bin/vapoursynth flags=(attach_disconnected,attach_disconnected.path=@{att}) {
  include <abstractions/attached/base>
  include <abstractions/attached/consoles>
  include <abstractions/python>

  @{exec_path} mr,

  owner @{PROC}/@{pid}/mounts r,

  include if exists <local/vapoursynth>
}

# vim:syntax=apparmor
