From ca1b736cf7ed441f98bdc92b69abbe0cfd8a3ecb Mon Sep 17 00:00:00 2001 From: Simon L Date: Mon, 29 Jan 2024 09:34:26 +0100 Subject: [PATCH] fix borg backup restore not working anymore Signed-off-by: Simon L --- php/src/Docker/DockerActionManager.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/php/src/Docker/DockerActionManager.php b/php/src/Docker/DockerActionManager.php index 50b9c977..cecde9e5 100644 --- a/php/src/Docker/DockerActionManager.php +++ b/php/src/Docker/DockerActionManager.php @@ -525,12 +525,11 @@ class DockerActionManager $requestBody['HostConfig']['CapDrop'] = ['NET_RAW']; } - if ($container->isApparmorUnconfined()) { - $requestBody['HostConfig']['SecurityOpt'] = ["apparmor:unconfined"]; - } - // Disable SELinux for AIO containers so that it does not break them $requestBody['HostConfig']['SecurityOpt'] = ["label:disable"]; + if ($container->isApparmorUnconfined()) { + $requestBody['HostConfig']['SecurityOpt'] = ["apparmor:unconfined", "label:disable"]; + } $mounts = [];