mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-01-24 06:29:19 +08:00
drop NET_RAW from all containers
Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
parent
133a7500f9
commit
bcced0b176
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