Skip to content

Commit

Permalink
maskedPaths and readonlyPaths: skip unexistent paths
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
alban committed Aug 15, 2018
1 parent d810dbc commit c5e0999
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config-linux.md
Original file line number Diff line number Diff line change
Expand Up @@ -635,6 +635,7 @@ The following parameters can be specified to set up seccomp:

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

### Example

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

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

### Example

Expand Down

0 comments on commit c5e0999

Please sign in to comment.