25 lines
538 B
Text
25 lines
538 B
Text
# apparmor.d - Full set of apparmor profiles
|
|
# Copyright (C) 2022 Jeroen Rijken
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
abi <abi/3.0>,
|
|
|
|
include <tunables/global>
|
|
|
|
@{exec_path} = @{lib}/cni/portmap /opt/cni/bin/portmap
|
|
profile cni-portmap @{exec_path} {
|
|
include <abstractions/base>
|
|
|
|
capability net_admin,
|
|
|
|
network netlink raw,
|
|
|
|
@{exec_path} mr,
|
|
@{bin}/xtables-nft-multi rPx -> cni-xtables-nft,
|
|
|
|
@{PROC}/sys/net/ipv{4,6}/conf/cali[0-9a-z]*/route_localnet rw,
|
|
|
|
include if exists <local/cni-portmap>
|
|
}
|
|
|
|
# vim:syntax=apparmor
|