mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-15 16:03:51 +01:00
feat(profiles): add and merge some cni profiles.
This commit is contained in:
parent
4f7cf8d90e
commit
d8449de55e
@ -6,16 +6,19 @@ abi <abi/3.0>,
|
||||
|
||||
include <tunables/global>
|
||||
|
||||
@{exec_path} = /opt/cni/bin/bandwidth
|
||||
profile bandwidth @{exec_path} {
|
||||
@{exec_path} = /{usr/,}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,
|
||||
|
||||
network inet,
|
||||
network netlink raw,
|
||||
|
||||
@{sys}/kernel/mm/transparent_hugepage/hpage_pmd_size r,
|
||||
|
||||
include if exists <local/bandwidth>
|
||||
include if exists <local/cni-bandwidth>
|
||||
}
|
||||
|
18
apparmor.d/groups/virt/cni-bridge
Normal file
18
apparmor.d/groups/virt/cni-bridge
Normal file
@ -0,0 +1,18 @@
|
||||
# apparmor.d - Full set of apparmor profiles
|
||||
# Copyright (C) 2021 Alexandre Pujol <alexandre@pujol.io>
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
abi <abi/3.0>,
|
||||
|
||||
include <tunables/global>
|
||||
|
||||
@{exec_path} = /{usr/,}lib/cni/bridge /opt/cni/bin/bridge
|
||||
profile cni-bridge @{exec_path} {
|
||||
include <abstractions/base>
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
@{sys}/kernel/mm/transparent_hugepage/hpage_pmd_size r,
|
||||
|
||||
include if exists <local/cni-bridge>
|
||||
}
|
18
apparmor.d/groups/virt/cni-firewall
Normal file
18
apparmor.d/groups/virt/cni-firewall
Normal file
@ -0,0 +1,18 @@
|
||||
# apparmor.d - Full set of apparmor profiles
|
||||
# Copyright (C) 2021 Alexandre Pujol <alexandre@pujol.io>
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
abi <abi/3.0>,
|
||||
|
||||
include <tunables/global>
|
||||
|
||||
@{exec_path} = /{usr/,}lib/cni/firewall /opt/cni/bin/firewall
|
||||
profile cni-firewall @{exec_path} {
|
||||
include <abstractions/base>
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
@{sys}/kernel/mm/transparent_hugepage/hpage_pmd_size r,
|
||||
|
||||
include if exists <local/cni-firewall>
|
||||
}
|
@ -6,13 +6,13 @@ abi <abi/3.0>,
|
||||
|
||||
include <tunables/global>
|
||||
|
||||
@{exec_path} = /opt/cni/bin/loopback
|
||||
profile loopback @{exec_path} {
|
||||
@{exec_path} = /{usr/,}lib/cni/loopback /opt/cni/bin/loopback
|
||||
profile cni-loopback @{exec_path} {
|
||||
include <abstractions/base>
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
@{sys}/kernel/mm/transparent_hugepage/hpage_pmd_size r,
|
||||
|
||||
include if exists <local/loopback>
|
||||
include if exists <local/cni-loopback>
|
||||
}
|
||||
|
@ -6,13 +6,13 @@ abi <abi/3.0>,
|
||||
|
||||
include <tunables/global>
|
||||
|
||||
@{exec_path} = /opt/cni/bin/portmap
|
||||
profile portmap @{exec_path} {
|
||||
@{exec_path} = /{usr/,}lib/cni/portmap /opt/cni/bin/portmap
|
||||
profile cni-portmap @{exec_path} {
|
||||
include <abstractions/base>
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
@{sys}/kernel/mm/transparent_hugepage/hpage_pmd_size r,
|
||||
|
||||
include if exists <local/portmap>
|
||||
include if exists <local/cni-portmap>
|
||||
}
|
||||
|
18
apparmor.d/groups/virt/cni-tuning
Normal file
18
apparmor.d/groups/virt/cni-tuning
Normal file
@ -0,0 +1,18 @@
|
||||
# apparmor.d - Full set of apparmor profiles
|
||||
# Copyright (C) 2021 Alexandre Pujol <alexandre@pujol.io>
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
abi <abi/3.0>,
|
||||
|
||||
include <tunables/global>
|
||||
|
||||
@{exec_path} = /{usr/,}lib/cni/tuning /opt/cni/bin/tuning
|
||||
profile cni-tuning @{exec_path} {
|
||||
include <abstractions/base>
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
@{sys}/kernel/mm/transparent_hugepage/hpage_pmd_size r,
|
||||
|
||||
include if exists <local/cni-tuning>
|
||||
}
|
Loading…
Reference in New Issue
Block a user