Skip to content

Commit 935f56c

Browse files
authored
Merge pull request #9 from moby/apparmor_tweak_description
apparmor: sync ptrace rule formatting and comment with containerd
2 parents 745a0ba + 2a79466 commit 935f56c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

apparmor/template.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ profile {{.Name}} flags=(attach_disconnected,mediate_deleted) {
6565
deny /sys/devices/virtual/powercap/** rwklx,
6666
deny /sys/kernel/security/** rwklx,
6767
68-
# suppress ptrace denials when using 'docker ps' or using 'ps' inside a container
69-
ptrace (trace,read,tracedby,readby) peer={{.Name}},
68+
# allow processes within the container to trace each other,
69+
# provided all other LSM and yama setting allow it.
70+
ptrace (trace,tracedby,read,readby) peer={{.Name}},
7071
}
7172
`

0 commit comments

Comments
 (0)