Skip to content

Commit 5610abd

Browse files
authored
Merge pull request #1298 from kolyshkin/fix-file-mode
config-linux,schema: fix FileMode description
2 parents 3b11014 + 9efd9f2 commit 5610abd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

config-linux.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ Each entry has the following structure:
135135
If a [file][] already exists at `path` that does not match the requested device, the runtime MUST generate an error.
136136
The path MAY be anywhere in the container filesystem, notably outside of `/dev`.
137137
* **`major, minor`** *(int64, REQUIRED unless `type` is `p`)* - [major, minor numbers][devices] for the device.
138-
* **`fileMode`** *(uint32, OPTIONAL)* - file mode for the device.
138+
* **`fileMode`** *(uint32, OPTIONAL)* - file mode for the device. Note it is a decimal (not an octal) number.
139139
You can also control access to devices [with cgroups](#configLinuxDeviceAllowedlist).
140140
* **`uid`** *(uint32, OPTIONAL)* - id of device owner in the [container namespace](glossary.md#container-namespace).
141141
* **`gid`** *(uint32, OPTIONAL)* - id of device group in the [container namespace](glossary.md#container-namespace).

schema/defs-linux.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,10 +149,10 @@
149149
"$ref": "defs.json#/definitions/int64"
150150
},
151151
"FileMode": {
152-
"description": "File permissions mode (typically an octal value)",
152+
"description": "File permissions mode (in decimal, not octal)",
153153
"type": "integer",
154154
"minimum": 0,
155-
"maximum": 512
155+
"maximum": 511
156156
},
157157
"FileType": {
158158
"description": "Type of a block or special character device",

0 commit comments

Comments
 (0)