Skip to content

Conversation

@mrunalp
Copy link
Contributor

@mrunalp mrunalp commented Apr 21, 2016

Signed-off-by: Mrunal Patel mrunalp@gmail.com

@mrunalp
Copy link
Contributor Author

mrunalp commented Apr 21, 2016

@crosbymichael @LK4D4 ping
cc: @rhatdan

@crosbymichael
Copy link
Member

Why does this not get placed in the Mount.Options array?

@mrunalp
Copy link
Contributor Author

mrunalp commented Apr 21, 2016

@crosbymichael This is for convenience. We could pass it to individual mounts as well. (We had a MountLabel in libcontainer configuration).

@mrunalp
Copy link
Contributor Author

mrunalp commented Apr 21, 2016

An argument in favor is that the value of the label is the same for all the mount points (that we need to label).

@crosbymichael
Copy link
Member

Could it every need to be different or will it always be the same?

@mrunalp
Copy link
Contributor Author

mrunalp commented Apr 21, 2016

AFAIK it wouldn't be but would defer to @rhatdan on that.

config-linux.md Outdated
###### Example

```json
"mountLabel": [
Copy link
Member

Choose a reason for hiding this comment

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

This should not be an array [] right?

@crosbymichael
Copy link
Member

ok, looking at the existing code this looks good. Only thing is that your json example has this as an array and not just a string

@mrunalp
Copy link
Contributor Author

mrunalp commented Apr 21, 2016

@crosbymichael Fixed.

@crosbymichael
Copy link
Member

LGTM

@rhatdan
Copy link
Contributor

rhatdan commented Apr 22, 2016

Right now we are still always planning on labeling content inside of the container with the same label.
LGTM

@vbatts
Copy link
Member

vbatts commented Apr 22, 2016

@mrunalp would you mind adding it to the JSON schema too? otherwise I can do a follow-up PR.

@vbatts
Copy link
Member

vbatts commented Apr 22, 2016

LGTM based on your response ^^

@mrunalp
Copy link
Contributor Author

mrunalp commented Apr 22, 2016

I'll add it.

Sent from my iPhone

On Apr 22, 2016, at 10:56 AM, Vincent Batts notifications@github.com wrote:

@mrunalp would you mind adding it to the JSON schema too? otherwise I can do a follow-up PR.


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub

@mrunalp
Copy link
Contributor Author

mrunalp commented Apr 22, 2016

@vbatts Added to schema.

###### Example

```json
"mountLabel": "system_u:object_r:svirt_sandbox_file_t:s0:c715,c811"
Copy link
Member

Choose a reason for hiding this comment

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

sorry. One more nit. Please add this line to the "complete json" example in the config.md.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch. Fixed.

Signed-off-by: Mrunal Patel <mrunalp@gmail.com>

## Mount Label

`mountLabel` will set the Selinux context for the mounts in 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.

Do we want cross-links between this and config.md's process.selinuxLabel? I expect folks interested in one would also be interested in the other.

@vbatts
Copy link
Member

vbatts commented Apr 22, 2016

LGTM

@vbatts vbatts merged commit 6e08c69 into opencontainers:master Apr 22, 2016
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.

5 participants