diff --git a/community-containers/makemkv/makemkv.json b/community-containers/makemkv/makemkv.json index 22132cb8..44252b06 100644 --- a/community-containers/makemkv/makemkv.json +++ b/community-containers/makemkv/makemkv.json @@ -37,6 +37,9 @@ "writeable": false } ], + "cap_add": [ + "SYS_RAWIO" + ], "environment": [ "TZ=%TIMEZONE%", "SECURE_CONNECTION=1", diff --git a/php/src/Docker/DockerActionManager.php b/php/src/Docker/DockerActionManager.php index 3956b2eb..a4adfcf1 100644 --- a/php/src/Docker/DockerActionManager.php +++ b/php/src/Docker/DockerActionManager.php @@ -482,6 +482,10 @@ readonly class DockerActionManager { } elseif ($container->identifier === 'nextcloud-aio-scrutiny') { // Allow it to access block devices $requestBody['HostConfig']['DeviceCgroupRules'] = ["b *:* rmw"]; + // Special things for the makemkv container which should not be exposed in the containers.json + } elseif ($container->identifier === 'nextcloud-aio-makemkv') { + // Allow it to access block devices + $requestBody['HostConfig']['DeviceCgroupRules'] = ["b 11:* rmw", "c 21:* rmw"]; } if (count($mounts) > 0) {