mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-20 14:36:52 +00: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;
|
$requestBody['HostConfig']['CapAdd'] = $capAdds;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Disable arp spoofing
|
||||||
|
$requestBody['HostConfig']['CapDrop'] = ['NET_RAW'];
|
||||||
|
|
||||||
if ($container->isApparmorUnconfined()) {
|
if ($container->isApparmorUnconfined()) {
|
||||||
$requestBody['HostConfig']['SecurityOpt'] = ["apparmor:unconfined"];
|
$requestBody['HostConfig']['SecurityOpt'] = ["apparmor:unconfined"];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue