Skip to content

Commit f621c2f

Browse files
author
Ma Shimiao
committed
schema/config-linux: add pattern limit for deviceCgroup
Signed-off-by: Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
1 parent 21f7998 commit f621c2f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

schema/defs-linux.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,8 @@
194194
"type": "boolean"
195195
},
196196
"type": {
197-
"type": "string"
197+
"type": "string",
198+
"pattern": "^[acb]$"
198199
},
199200
"major": {
200201
"$ref": "#/definitions/Major"
@@ -203,7 +204,8 @@
203204
"$ref": "#/definitions/Minor"
204205
},
205206
"access": {
206-
"type": "string"
207+
"type": "string",
208+
"pattern": "^[rwm]{1,3}$"
207209
}
208210
},
209211
"required": [

0 commit comments

Comments
 (0)