Commit a72ef1c
authored
fix(k3s): Add AppArmor rule for proc/thread-self/attr to allow containerd exec profiling (#63)
* fix(k3s): Add AppArmor rule for proc/thread-self/attr to allow containerd exec profiling
Without /proc/thread-self/attr/** rw, containerd cannot write to
/proc/thread-self/attr/apparmor/exec when applying AppArmor profiles
to container exec processes, causing OCI runtime exec failures.
* fix(k3s): Narrow AppArmor attr path to apparmor subtree for least-privilege
Scope /proc/thread-self/attr/** down to /proc/thread-self/attr/apparmor/**
to avoid exposing SELinux and other LSM attribute files unnecessarily.
Add inline comment explaining why rw access is required on this path.1 parent e2520d3 commit a72ef1c
3 files changed
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
10 | 16 | | |
11 | 17 | | |
12 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
| 176 | + | |
176 | 177 | | |
177 | 178 | | |
178 | 179 | | |
| |||
0 commit comments