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

abi <abi/3.0>,

include <tunables/global>

@{exec_path} = @{lib}/whonix-firewall/{firewall30default,firewall50user}
profile whonix-firewall-edit @{exec_path} {
  include <abstractions/base>
  include <abstractions/consoles>

  @{exec_path} mr,

  @{sh_path}                   rix,
  @{bin}/gsudoedit             rix,

  /etc/whonix_firewall.d/*.conf rw,

  include if exists <local/whonix-firewall-edit>
}


# vim:syntax=apparmor
