You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Users may want to specify the umask(2) of the init process in a
container. This value is identical in semantics to POSIX. This is in
order to allow usage of an OCI container for a service which normally
only inherits the umask given to it.
Signed-off-by: Aleksa Sarai <[email protected]>
Copy file name to clipboardExpand all lines: config.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -217,6 +217,7 @@ For POSIX platforms the `user` structure has the following fields:
217
217
218
218
***`uid`** (int, REQUIRED) specifies the user ID in the [container namespace](glossary.md#container-namespace).
219
219
***`gid`** (int, REQUIRED) specifies the group ID in the [container namespace](glossary.md#container-namespace).
220
+
***`umask`** (int, OPTIONAL) specifies the [umask][umask_2] of the user. If unspecified, the umask should not be changed from the calling process' umask.
220
221
***`additionalGids`** (array of ints, OPTIONAL) specifies additional group IDs in the [container namespace](glossary.md#container-namespace) to be added to the process.
221
222
222
223
_Note: symbolic name for uid and gid, such as uname and gname respectively, are left to upper levels to derive (i.e. `/etc/passwd` parsing, NSS, etc)_
@@ -233,6 +234,7 @@ _Note: symbolic name for uid and gid, such as uname and gname respectively, are
233
234
"user": {
234
235
"uid": 1,
235
236
"gid": 1,
237
+
"umask": 63,
236
238
"additionalGids": [5, 6]
237
239
},
238
240
"env": [
@@ -291,6 +293,7 @@ _Note: symbolic name for uid and gid, such as uname and gname respectively, are
291
293
"user": {
292
294
"uid": 1,
293
295
"gid": 1,
296
+
"umask": 7,
294
297
"additionalGids": [2, 8]
295
298
},
296
299
"env": [
@@ -843,6 +846,7 @@ Here is a full example `config.json` for reference.
0 commit comments