Skip to content

Commit

Permalink
AppArmor profile tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
sparrc committed Dec 11, 2023
1 parent 1a433bc commit c202c49
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions ecs-init/apparmor/apparmor.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ const ecsAgentDefaultProfile = `
profile ecs-agent-default flags=(attach_disconnected,mediate_deleted) {
#include <abstractions/base>
network,
network inet,
network inet6,
network netlink,
network unix,
capability,
file,
umount,
Expand All @@ -31,7 +34,7 @@ profile ecs-agent-default flags=(attach_disconnected,mediate_deleted) {
signal (send,receive) peer=ecs-agent-default,
# ECS agent requires DBUS send
dbus (send) bus=system,
dbus (send,receive) bus=system,
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 Down

0 comments on commit c202c49

Please sign in to comment.