fix some paths and seccompprofile

Signed-off-by: Simon L. <szaimen@e.mail.de>
This commit is contained in:
Simon L. 2025-11-10 15:29:22 +01:00
parent e15304e28f
commit cc65481d51
2 changed files with 2 additions and 3 deletions

View file

@ -60,10 +60,10 @@ class DataConst {
} }
public static function GetCollaboraSeccompProfilePath() : string { 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 { public static function GetContainersDefinitionPath() : string {
return (string)realpath(__DIR__ . '/../containers.json'); return (string)realpath(__DIR__ . '/../../containers.json');
} }
} }

View file

@ -406,7 +406,6 @@ readonly class DockerActionManager {
} elseif ($container->GetIdentifier() === 'nextcloud-aio-collabora') { } elseif ($container->GetIdentifier() === 'nextcloud-aio-collabora') {
// Load reference seccomp profile for collabora // Load reference seccomp profile for collabora
$seccompProfile = (string)file_get_contents(DataConst::GetCollaboraSeccompProfilePath()); $seccompProfile = (string)file_get_contents(DataConst::GetCollaboraSeccompProfilePath());
$seccompProfile = addslashes($seccompProfile);
$requestBody['HostConfig']['SecurityOpt'] = ["label:disable", "seccomp=$seccompProfile", "no-new-privileges=true", "apparmor=unconfined"]; $requestBody['HostConfig']['SecurityOpt'] = ["label:disable", "seccomp=$seccompProfile", "no-new-privileges=true", "apparmor=unconfined"];
// Additional Collabora options // Additional Collabora options