mirror of
https://github.com/nextcloud/all-in-one.git
synced 2026-09-19 01:37:24 +00:00
Drop NET_RAW cap by default when no caps are explicitly dropped
Signed-off-by: Fs00 <francescosaltori@gmail.com>
This commit is contained in:
@@ -381,6 +381,9 @@ readonly class DockerActionManager {
|
||||
$capDrops = $container->capDrop;
|
||||
if (count($capDrops) > 0) {
|
||||
$requestBody['HostConfig']['CapDrop'] = $capDrops;
|
||||
} else if (!in_array('NET_RAW', $capAdds, true)) {
|
||||
// Prevent ARP spoofing by default
|
||||
$requestBody['HostConfig']['CapDrop'] = ['NET_RAW'];
|
||||
}
|
||||
|
||||
// Disable SELinux for AIO containers so that it does not break them
|
||||
|
||||
Reference in New Issue
Block a user