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 e5fd83a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ecs-init/apparmor/apparmor.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ profile ecs-agent-default flags=(attach_disconnected,mediate_deleted) {
#include <abstractions/base>
network,
# deny raw socket creation to prevent exploits that perform network attacks (arp, ip spoofing, etc.)
deny network socket,
capability,
file,
umount,
Expand All @@ -31,7 +33,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 e5fd83a

Please sign in to comment.