From 428ed6b14224ce5185a3342fd18e4d5297ed5ba3 Mon Sep 17 00:00:00 2001 From: Iceber Gu Date: Mon, 15 Feb 2021 23:53:13 +0800 Subject: [PATCH] schema: fix FileMode type Signed-off-by: Iceber Gu --- schema/defs-linux.json | 4 ++-- specs-go/config.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/schema/defs-linux.json b/schema/defs-linux.json index 61b6ec75c..565661fbe 100644 --- a/schema/defs-linux.json +++ b/schema/defs-linux.json @@ -143,10 +143,10 @@ "$ref": "defs.json#/definitions/int64" }, "FileMode": { - "description": "File permissions mode (typically an octal value)", + "description": "File mode (typically an octal value)", "type": "integer", "minimum": 0, - "maximum": 512 + "maximum": 4096 }, "FileType": { "description": "Type of a block or special character device", diff --git a/specs-go/config.go b/specs-go/config.go index 40955144b..36c4aec59 100644 --- a/specs-go/config.go +++ b/specs-go/config.go @@ -386,7 +386,7 @@ type LinuxDevice struct { Major int64 `json:"major"` // Minor is the device's minor number. Minor int64 `json:"minor"` - // FileMode permission bits for the device. + // File mode bits for the device. FileMode *os.FileMode `json:"fileMode,omitempty"` // UID of the device. UID *uint32 `json:"uid,omitempty"`