Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Commit

Permalink
Fix apparmor configuration for docker-nested
Browse files Browse the repository at this point in the history
  • Loading branch information
sargun committed Aug 14, 2018
1 parent 89a42f2 commit 6e058c7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions root/etc/apparmor.d/docker-nested
Expand Up @@ -16,6 +16,9 @@ profile docker-nested flags=(attach_disconnected,mediate_deleted) {
capability,
file,
umount,
# Apparmor 4.14+ breaks mounting when using an old userland unless all mounts are whitelisted
mount,
remount,

deny @{PROC}/* w, # deny write for all files directly in /proc (not in a subdir)
# deny write to files not in /proc/<number>/** or /proc/sys/**
Expand All @@ -27,10 +30,6 @@ profile docker-nested flags=(attach_disconnected,mediate_deleted) {
deny @{PROC}/kmem rwklx,
deny @{PROC}/kcore rwklx,

deny remount,
deny mount,
deny pivot_root,

deny signal (send),
signal peer=@{profile_name},

Expand All @@ -47,6 +46,7 @@ profile docker-nested flags=(attach_disconnected,mediate_deleted) {

# suppress ptrace denials when using 'docker ps' or using 'ps' inside a container
ptrace (trace,read) peer=docker-default,
ptrace (trace,read) peer=docker-nested,

}

0 comments on commit 6e058c7

Please sign in to comment.