mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-18 17:08:09 +01:00
Add containerd profile.
This commit is contained in:
parent
a4ba26133f
commit
fda83bbba7
1 changed files with 34 additions and 0 deletions
34
apparmor.d/groups/virt/containerd
Normal file
34
apparmor.d/groups/virt/containerd
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
# 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/,}bin/containerd
|
||||||
|
profile containerd @{exec_path} {
|
||||||
|
include <abstractions/base>
|
||||||
|
|
||||||
|
capability dac_read_search,
|
||||||
|
capability net_admin,
|
||||||
|
capability sys_admin,
|
||||||
|
|
||||||
|
signal (receive) set=term peer=dockerd,
|
||||||
|
|
||||||
|
@{exec_path} mr,
|
||||||
|
|
||||||
|
/{usr/,}bin/containerd-shim-runc-v2 rPUx,
|
||||||
|
/{usr/,}bin/kmod rPx,
|
||||||
|
|
||||||
|
/var/lib/docker/containerd/{,**} rwk,
|
||||||
|
@{run}/docker/containerd/{,**} rwk,
|
||||||
|
|
||||||
|
@{sys}/kernel/mm/transparent_hugepage/hpage_pmd_size r,
|
||||||
|
|
||||||
|
owner @{PROC}/@{pids}/uid_map r,
|
||||||
|
owner @{PROC}/@{pids}/mountinfo r,
|
||||||
|
@{PROC}/sys/net/core/somaxconn r,
|
||||||
|
|
||||||
|
include if exists <local/containerd>
|
||||||
|
}
|
Loading…
Reference in a new issue