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
Copy file name to clipboardExpand all lines: config.md
+46-2Lines changed: 46 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -349,12 +349,38 @@ For Linux-based systems, the `process` object supports the following process-spe
349
349
The `ruleset` currently contains the following types:
350
350
* **`handledAccessFS`** (array of strings, OPTIONAL) is an array of FS typed actions that are handled by a ruleset.
351
351
If no rule explicitly allow them, they should then be forbidden.
352
+
* **`handledAssessNetwork`** (array of strings, OPTIONAL) is an array of NETWORK typed actions that are handled by a ruleset. (The NETWORK typed actions are avaliable when the ABI version >= 4. the behavior of the NETWORK typed actions is not used when the ABI version is less than 4 will depend on the **`disableBestEffort`**)
352
353
***`rules`** (object, OPTIONAL) the `rules` field specifies the security policies (i.e., actions allowed on objects) to be added to an existing ruleset.
353
354
The `rules` currently contains the following types:
354
355
* **`pathBeneath`** (array of objects, OPTIONAL) is an array of the file-hierarchy typed rules.
355
356
Entries in the array contain the following properties:
356
-
* **`allowedAccess`** (array of strings, OPTIONAL) is an array of FS typed actions that are allowed by a rule.
357
+
* **`allowedAccess`** (array of strings, OPTIONAL) is an array of FS typed actions that are allowed by a rule. The actions are grouped by the ABI version in the following description:
358
+
1. ABI version >= 1:
359
+
1. exectute
360
+
2. write_file
361
+
3. read_file
362
+
4. read_dir
363
+
5. remove_dir
364
+
6. remove_file
365
+
7. make_char
366
+
8. make_dir
367
+
9. make_reg
368
+
10. make_sock
369
+
11. make_fifo
370
+
12. make_block
371
+
13. make_sym
372
+
2. ABI version >= 2:
373
+
1. refer
374
+
3. ABI version >= 3:
375
+
1. truncate
357
376
* **`paths`** (array of strings, OPTIONAL) is an array of files or parent directories of the file hierarchies to restrict.
377
+
* **`portBeneath`** (array of objects, OPTIONAL) is an array of the network-hierarchy typed rules.
378
+
Entries in the array contain the following properties:
379
+
* **`allowedAccess`** (array of strings, OPTIONAL) is an array of NETWORK typed actions that are allowed by a rule. The actions are grouped by the ABI version in the following description:
380
+
1. ABI version >= 4:
381
+
1. bind
382
+
2. connect
383
+
* **`ports`** (array of strings, OPTIONAL) is an array of network ports to restrict.
358
384
***`disableBestEffort`** (bool, OPTIONAL) the `disableBestEffort` field disables the best-effort security approach for Landlock access rights.
359
385
This is for conditions when the Landlock access rights explicitly configured by the container are not supported or available in the running kernel.
360
386
If the best-effort security approach is enabled (`false`), the runtime SHOULD enforce the strongest rules configured up to the current kernel support, and only be [logged as a warning](runtime.md#warnings) for those not supported.
@@ -420,7 +446,13 @@ _Note: symbolic name for uid and gid, such as uname and gname respectively, are
420
446
"make_sock",
421
447
"make_fifo",
422
448
"make_block",
423
-
"make_sym"
449
+
"make_sym",
450
+
"refer",
451
+
"truncate"
452
+
],
453
+
"handledAssessNetwork": [
454
+
"bind",
455
+
"connect"
424
456
]
425
457
},
426
458
"rules": {
@@ -456,6 +488,18 @@ _Note: symbolic name for uid and gid, such as uname and gname respectively, are
0 commit comments