# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2022 Jeroen Rijken
# SPDX-License-Identifier: GPL-2.0-only

abi <abi/4.0>,

include <tunables/global>

@{exec_path} = @{lib}/cni/bandwidth /opt/cni/bin/bandwidth
profile cni-bandwidth @{exec_path} {
  include <abstractions/base>
  
  network inet dgram,
  network inet6 dgram,
  network inet stream,
  network inet6 stream,
  network netlink raw,

  @{exec_path} mr,
  
  include if exists <local/cni-bandwidth>
}

# vim:syntax=apparmor
