# vim:syntax=apparmor
# ------------------------------------------------------------------
#
#    Copyright (C) 2024 Canonical Ltd.
#
#    This program is free software; you can redistribute it and/or
#    modify it under the terms of version 2 of the GNU General Public
#    License published by the Free Software Foundation.
#
# ------------------------------------------------------------------

abi <abi/4.0>,

include <tunables/global>

profile nhrpd /usr/lib/frr/nhrpd flags=(attach_disconnected) {
  include <abstractions/base>
  include <abstractions/frr>
 
  capability net_raw,
  capability net_admin,

  /usr/lib/frr/nhrpd mr,
  /usr/bin/dash ix,
  @{PROC}/sys/net/ipv4/conf/*/send_redirects w,

  # Site-specific additions and overrides. See local/README for details.
  include if exists <local/nhrpd>
}

