# 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/flannel /opt/cni/bin/flannel
@{att} = /att/cni-flannel/
profile cni-flannel /{{,usr/}lib{,exec,32,64}/cni/flannel,opt/cni/bin/flannel} flags=(complain,attach_disconnected,attach_disconnected.path=@{att}){
  include <abstractions/attached/base>

  @{exec_path} mr,

  include if exists <local/cni-flannel>
}

# vim:syntax=apparmor
