Skip to content

Commit

Permalink
drop NET_RAW from all containers
Browse files Browse the repository at this point in the history
Signed-off-by: Simon L <[email protected]>
  • Loading branch information
szaimen committed Sep 20, 2023
1 parent 133a750 commit bcced0b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions php/src/Docker/DockerActionManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,9 @@ public function CreateContainer(Container $container) : void {
$requestBody['HostConfig']['CapAdd'] = $capAdds;
}

// Disable arp spoofing
$requestBody['HostConfig']['CapDrop'] = ['NET_RAW'];

if ($container->isApparmorUnconfined()) {
$requestBody['HostConfig']['SecurityOpt'] = ["apparmor:unconfined"];
}
Expand Down

0 comments on commit bcced0b

Please sign in to comment.