Skip to content

Commit

Permalink
Merge pull request #3377 from nextcloud/enh/noid/drop-net-raw
Browse files Browse the repository at this point in the history
  • Loading branch information
szaimen authored Sep 27, 2023
2 parents 3e25acc + bcced0b commit 8e4678f
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 8e4678f

Please sign in to comment.