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

abi <abi/3.0>,

include <tunables/global>

@{name} = firefox{,.sh,-esr,-bin}
@{lib_dirs} = @{lib}/@{name} /opt/@{name}

@{exec_path} = @{lib_dirs}/plugin-container
profile firefox-plugin-container @{exec_path} {
  include <abstractions/base>

  signal (receive) set=(term, kill) peer=firefox,

  @{exec_path} mr,

  include if exists <local/firefox-plugin-container>
}
