From 9f2342220d5d35abf0bc245e2a5a6fe3cdc6fe66 Mon Sep 17 00:00:00 2001 From: Long Liu Date: Thu, 28 Mar 2019 14:10:10 +0800 Subject: [PATCH] ACRN: dm: Enable mount namespace for container. The patch adds mount namespace for the container. Without the patch when we destroy the container, there still have mountinfo for the container. This is one workaroud for runC bug. If the mount namespace is disabled, when try to mount host "/" to container "/", there will cause the issue. Detail discussion as following link. "https://groups.google.com/a/opencontainers.org/forum/#!searchin/ dev/mount$20namespace%7Csort:date/dev/p10bq-kXODk/obkqBRdxCQAJ" After enable mount namespace, some small performance imapcts for specific mediator, likes USB. Will keep monitor runc community, and revert this patch once related runc patches get integrated. Tracked-On: #2020 Signed-off-by: Long Liu Acked-by: Yu Wang --- devicemodel/samples/apl-mrb/runC.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/devicemodel/samples/apl-mrb/runC.json b/devicemodel/samples/apl-mrb/runC.json index a785c4b7c..c68d401b3 100644 --- a/devicemodel/samples/apl-mrb/runC.json +++ b/devicemodel/samples/apl-mrb/runC.json @@ -265,6 +265,9 @@ }, { "type": "uts" + }, + { + "type": "mount" } ] }