From a084798c96a7f9b55fcf047bdc019be6333df6b1 Mon Sep 17 00:00:00 2001 From: zhouhao Date: Fri, 21 Apr 2017 13:29:13 +0800 Subject: [PATCH] schema: Add enumeration to rootfsPropagation values Signed-off-by: zhouhao --- schema/config-linux.json | 2 +- schema/defs-linux.json | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/schema/config-linux.json b/schema/config-linux.json index d51e5b5dd..b3785221b 100644 --- a/schema/config-linux.json +++ b/schema/config-linux.json @@ -227,7 +227,7 @@ }, "rootfsPropagation": { "id": "https://opencontainers.org/schema/bundle/linux/rootfsPropagation", - "type": "string" + "$ref": "defs-linux.json#/definitions/RootfsPropagation" }, "seccomp": { "id": "https://opencontainers.org/schema/bundle/linux/seccomp", diff --git a/schema/defs-linux.json b/schema/defs-linux.json index 094037654..39d02a09f 100644 --- a/schema/defs-linux.json +++ b/schema/defs-linux.json @@ -1,5 +1,14 @@ { "definitions": { + "RootfsPropagation": { + "type": "string", + "enum": [ + "private", + "shared", + "slave", + "unbindable" + ] + }, "SeccompArch": { "type": "string", "enum": [