From cc65481d51f0e28d06c9424febfe0fde5c937ac7 Mon Sep 17 00:00:00 2001 From: "Simon L." Date: Mon, 10 Nov 2025 15:29:22 +0100 Subject: [PATCH] fix some paths and seccompprofile Signed-off-by: Simon L. --- php/src/Data/DataConst.php | 4 ++-- php/src/Docker/DockerActionManager.php | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/php/src/Data/DataConst.php b/php/src/Data/DataConst.php index 099079c6..9111a98a 100644 --- a/php/src/Data/DataConst.php +++ b/php/src/Data/DataConst.php @@ -60,10 +60,10 @@ class DataConst { } public static function GetCollaboraSeccompProfilePath() : string { - return (string)realpath(__DIR__ . '/../cool-seccomp-profile.json'); + return (string)realpath(__DIR__ . '/../../cool-seccomp-profile.json'); } public static function GetContainersDefinitionPath() : string { - return (string)realpath(__DIR__ . '/../containers.json'); + return (string)realpath(__DIR__ . '/../../containers.json'); } } diff --git a/php/src/Docker/DockerActionManager.php b/php/src/Docker/DockerActionManager.php index ffa0ca2a..7d7fc0e9 100644 --- a/php/src/Docker/DockerActionManager.php +++ b/php/src/Docker/DockerActionManager.php @@ -406,7 +406,6 @@ readonly class DockerActionManager { } elseif ($container->GetIdentifier() === 'nextcloud-aio-collabora') { // Load reference seccomp profile for collabora $seccompProfile = (string)file_get_contents(DataConst::GetCollaboraSeccompProfilePath()); - $seccompProfile = addslashes($seccompProfile); $requestBody['HostConfig']['SecurityOpt'] = ["label:disable", "seccomp=$seccompProfile", "no-new-privileges=true", "apparmor=unconfined"]; // Additional Collabora options