Skip to content

Commit e264540

Browse files
committed
fix(apparmor): allow sockets in cri-containerd profile (#5218)
Add explicit AppArmor rules to permit common socket types (inet, inet6, unix) needed by Kubernetes workloads (e.g., kube-controller, coredns). Plucky ships AppArmor 4.1.0, which is stricter and requires exact socket types to be set. This resolves "apparmor=DENIED operation=create class=net" denials. Fixes #5082 Fixes #5190 Fixes #5140
1 parent 9b60818 commit e264540

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.github/workflows/build-snap.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
name: Test core addons
5959
runs-on: ubuntu-latest
6060
needs: build
61-
timeout-minutes: 30
61+
timeout-minutes: 60
6262
env:
6363
# Avoid truncated "ps" output
6464
COLUMNS: 2048

microk8s-resources/containerd-profile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@ profile cri-containerd.apparmor.d flags=(attach_disconnected,mediate_deleted) {
66
#include <abstractions/base>
77

88

9-
network,
9+
network inet,
10+
network inet6,
11+
network unix,
12+
network netlink,
13+
1014
capability,
1115
file,
1216
umount,
@@ -37,4 +41,4 @@ profile cri-containerd.apparmor.d flags=(attach_disconnected,mediate_deleted) {
3741

3842
signal (receive) peer=snap.microk8s.daemon-kubelite,
3943
signal (receive) peer=snap.microk8s.daemon-containerd,
40-
}
44+
}

0 commit comments

Comments
 (0)