Skip to content

Commit

Permalink
apparmor: allow readby and tracedby
Browse files Browse the repository at this point in the history
Fixes audit errors such as:

type=AVC msg=audit(1550236803.810:143):
apparmor="DENIED" operation="ptrace" profile="docker-default"
pid=3181 comm="ps" requested_mask="readby" denied_mask="readby"
peer="docker-default"

audit(1550236375.918:3): apparmor="DENIED" operation="ptrace"
profile="docker-default" pid=2267 comm="ps"
requested_mask="tracedby" denied_mask="tracedby"
peer="docker-default"

Signed-off-by: Goldwyn Rodrigues <[email protected]>
  • Loading branch information
goldwynr committed Apr 22, 2019
1 parent aac801a commit b364552
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion profiles/apparmor/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ profile {{.Name}} flags=(attach_disconnected,mediate_deleted) {
{{if ge .Version 208095}}
# suppress ptrace denials when using 'docker ps' or using 'ps' inside a container
ptrace (trace,read) peer={{.Name}},
ptrace (trace,read,tracedby,readby) peer={{.Name}},
{{end}}
}
`

0 comments on commit b364552

Please sign in to comment.