Skip to content

Commit c5e0999

Browse files
committed
maskedPaths and readonlyPaths: skip unexistent paths
runc ignores unexistent paths in maskedPaths and readonlyPaths. That's useful for blocking /proc/latency_stats (default in buildah) because this path is not existing on all kernels. In this case, no error should be generated. Other errors should be generated. For example, using readonlyPaths on a unbindable path fails and this error must be generated, otherwise the path would silently stay read-write. Signed-off-by: Alban Crequy <[email protected]>
1 parent d810dbc commit c5e0999

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

config-linux.md

+2
Original file line numberDiff line numberDiff line change
@@ -635,6 +635,7 @@ The following parameters can be specified to set up seccomp:
635635

636636
**`maskedPaths`** (array of strings, OPTIONAL) will mask over the provided paths inside the container so that they cannot be read.
637637
The values MUST be absolute paths in the [container namespace](glossary.md#container_namespace).
638+
Unexistent paths MUST be skipped without generating an error.
638639

639640
### Example
640641

@@ -648,6 +649,7 @@ The following parameters can be specified to set up seccomp:
648649

649650
**`readonlyPaths`** (array of strings, OPTIONAL) will set the provided paths as readonly inside the container.
650651
The values MUST be absolute paths in the [container namespace](glossary.md#container-namespace).
652+
Unexistent paths MUST be skipped without generating an error.
651653

652654
### Example
653655

0 commit comments

Comments
 (0)