mirror of
https://github.com/nextcloud/all-in-one.git
synced 2026-07-22 06:02:54 +00:00
Drop any extra caps for collabora when seccomp profile is enabled
Signed-off-by: Fs00 <francescosaltori@gmail.com>
This commit is contained in:
@@ -440,9 +440,11 @@ readonly class DockerActionManager {
|
||||
// Special things for the collabora container which should not be exposed in the containers.json
|
||||
} elseif ($container->identifier === 'nextcloud-aio-collabora') {
|
||||
if (!$this->configurationManager->collaboraSeccompDisabled) {
|
||||
// Load reference seccomp profile for collabora
|
||||
// Load reference seccomp profile for collabora...
|
||||
$seccompProfile = (string)file_get_contents(DataConst::GetCollaboraSeccompProfilePath());
|
||||
$requestBody['HostConfig']['SecurityOpt'] = ["label:disable", "seccomp=$seccompProfile"];
|
||||
// ...which allows the collabora container to run without any capabilities
|
||||
$requestBody['HostConfig']['CapAdd'] = [];
|
||||
}
|
||||
|
||||
// Additional Collabora options
|
||||
|
||||
Reference in New Issue
Block a user