Skip to content

Conversation

@crosbymichael
Copy link
Member

Fixes #320

This adds the maskedPaths and readonlyPaths fields to the spec so that
proper masking and setting of files in /proc can be configured.

Signed-off-by: Michael Crosby crosbymichael@gmail.com

// RootfsPropagation is the rootfs mount propagation mode for the container.
RootfsPropagation string `json:"rootfsPropagation,omitempty"`
// MaskedPaths masks over the provided paths inside the container.
MaskedPaths []string `json:"maskedPaths"`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Add omitempty here and below

@vishh
Copy link
Contributor

vishh commented Apr 1, 2016

LGTM

config-linux.md Outdated

## Readonly Paths

readonlyPaths will set the provieded paths as readonly inside the container.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

“provieded” → “provided”. And probably readonlyPaths (and similar for your earlier maskedPaths docs) to match the rest of the spec.

@wking
Copy link
Contributor

wking commented Apr 1, 2016

On Thu, Mar 31, 2016 at 05:15:51PM -0700, Michael Crosby wrote:

This adds the maskedPaths and readonlyPaths fields to the spec so
that proper masking and setting of files in /proc can be configured.

I'm still not sure we need these 1, but if they're going in, should
they also come with JSON Schema entries? Or is the policy there
@vbatts does his best to keep them up to date on his own” 2 ;)?

Fixes opencontainers#320

This adds the maskedPaths and readonlyPaths fields to the spec so that
proper masking and setting of files in /proc can be configured.

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
@crosbymichael
Copy link
Member Author

@vbatts i tried to updated the scheme stuff, let me know if I did it wrong

@mrunalp
Copy link
Contributor

mrunalp commented Apr 1, 2016

The schema changes look good. (I also tested them using the validate tool).
LGTM

@mrunalp mrunalp merged commit 93ca97e into opencontainers:master Apr 1, 2016
@crosbymichael crosbymichael deleted the masked-paths branch April 1, 2016 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants