28 lines
534 B
Text
28 lines
534 B
Text
# 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/loopback /opt/cni/bin/loopback
|
|
profile cni-loopback @{exec_path} flags=(attach_disconnected) {
|
|
include <abstractions/base>
|
|
|
|
capability sys_admin,
|
|
capability net_admin,
|
|
|
|
network netlink raw,
|
|
|
|
@{exec_path} mr,
|
|
|
|
/ r,
|
|
|
|
@{run}/netns/ r,
|
|
@{run}/netns/cni-@{uuid} rw,
|
|
|
|
include if exists <local/cni-loopback>
|
|
}
|
|
|
|
# vim:syntax=apparmor
|