mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-02-28 15:57:09 +08:00
Merge pull request #3377 from nextcloud/enh/noid/drop-net-raw
This commit is contained in:
commit
8e4678fe82
1 changed files with 3 additions and 0 deletions
|
@ -476,6 +476,9 @@ class DockerActionManager
|
|||
$requestBody['HostConfig']['CapAdd'] = $capAdds;
|
||||
}
|
||||
|
||||
// Disable arp spoofing
|
||||
$requestBody['HostConfig']['CapDrop'] = ['NET_RAW'];
|
||||
|
||||
if ($container->isApparmorUnconfined()) {
|
||||
$requestBody['HostConfig']['SecurityOpt'] = ["apparmor:unconfined"];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue