mirror of
https://github.com/nextcloud/all-in-one.git
synced 2026-05-28 06:20:14 +00:00
drop NET_RAW from all containers
Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
@@ -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"];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user