mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-15 07:54:17 +01:00
Fixes for container network creation.
This commit is contained in:
parent
3e006e3c76
commit
c84455cca4
@ -10,6 +10,9 @@ include <tunables/global>
|
||||
profile cni-calico @{exec_path} flags=(attach_disconnected) {
|
||||
include <abstractions/base>
|
||||
|
||||
capability sys_admin,
|
||||
capability net_admin,
|
||||
|
||||
network inet dgram,
|
||||
network inet6 dgram,
|
||||
network inet stream,
|
||||
@ -19,6 +22,8 @@ profile cni-calico @{exec_path} flags=(attach_disconnected) {
|
||||
@{exec_path} mr,
|
||||
@{exec_path}-ipam rix,
|
||||
|
||||
/ r,
|
||||
|
||||
/etc/cni/net.d/{,**} r,
|
||||
|
||||
/var/lib/calico/{,**} r,
|
||||
@ -29,6 +34,8 @@ profile cni-calico @{exec_path} flags=(attach_disconnected) {
|
||||
@{run}/calico/ipam.lock rwk,
|
||||
@{run}/netns/cni-@{uuid} r,
|
||||
|
||||
/proc/sys/net/ipv4/ip_forward rw,
|
||||
|
||||
@{sys}/kernel/mm/transparent_hugepage/hpage_pmd_size r,
|
||||
|
||||
include if exists <local/cni-calico>
|
||||
|
@ -10,6 +10,9 @@ include <tunables/global>
|
||||
profile cni-loopback @{exec_path} flags=(attach_disconnected) {
|
||||
include <abstractions/base>
|
||||
|
||||
capability sys_admin,
|
||||
capability net_admin,
|
||||
|
||||
network netlink raw,
|
||||
|
||||
@{exec_path} mr,
|
||||
|
@ -18,6 +18,7 @@ profile containerd @{exec_path} flags=(attach_disconnected) {
|
||||
capability dac_read_search,
|
||||
capability dac_override,
|
||||
capability fsetid,
|
||||
capability fowner,
|
||||
capability net_admin,
|
||||
capability sys_admin,
|
||||
|
||||
@ -58,8 +59,10 @@ profile containerd @{exec_path} flags=(attach_disconnected) {
|
||||
|
||||
/opt/containerd/{,**} rw,
|
||||
|
||||
/var/lib/cni/{,**/} w,
|
||||
/var/lib/cni/results/cni-loopback-@{uuid}-lo wl,
|
||||
/var/lib/cni/results/cni-loopback-[0-9a-f]*-lo wl,
|
||||
/var/lib/cni/results/k8s-pod-network-[0-9a-f]*-eth0
|
||||
/var/lib/containerd/{,**} rwk,
|
||||
/var/lib/containerd/tmpmounts/containerd-mount[0-9]*/** l,
|
||||
/var/lib/docker/containerd/{,**} rwk,
|
||||
|
Loading…
Reference in New Issue
Block a user