From 243efc7f012cfb1de4c5b8883e390f3b2185c287 Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Mon, 26 Feb 2018 15:46:42 +0100 Subject: [PATCH] sync from upstream Signed-off-by: Giuseppe Scrivano --- config.json.template | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/config.json.template b/config.json.template index 3ce615c..1ba477c 100644 --- a/config.json.template +++ b/config.json.template @@ -5,6 +5,7 @@ "arch": "amd64" }, "process": { + "selinuxLabel": "system_u:system_r:container_runtime_t:s0", "terminal": false, "user": { "uid": 0, @@ -283,6 +284,17 @@ "mode=755" ] }, + { + "type": "bind", + "source": "/opt", + "destination": "/opt", + "options": [ + "rbind", + "rslave", + "rw", + "mode=755" + ] + }, { "type": "bind", "source": "/mnt", @@ -294,17 +306,6 @@ "mode=755" ] }, - { - "type": "bind", - "source": "/usr/share/rhel", - "destination": "/usr/share/rhel", - "options": [ - "rprivate", - "rbind", - "ro", - "mode=755" - ] - }, { "type": "bind", "source": "${RUN_DIRECTORY}", @@ -377,10 +378,11 @@ "private" ] } + $ADDTL_MOUNTS ], "hooks": {}, "linux": { - "rootfsPropagation": "private", + "rootfsPropagation": "rslave", "resources": { "devices": [ { @@ -393,7 +395,6 @@ { "type": "mount" } - ], - "selinuxProcessLabel": "system_u:system_r:container_runtime_t:s0" + ] } }