Skip to content

Added volume bind option SELinux :z :Z#221

Merged
ndeloof merged 4 commits intocompose-spec:masterfrom
tymonx:feature/volume-bind-option-selinux
Jan 7, 2022
Merged

Added volume bind option SELinux :z :Z#221
ndeloof merged 4 commits intocompose-spec:masterfrom
tymonx:feature/volume-bind-option-selinux

Conversation

@tymonx
Copy link
Contributor

@tymonx tymonx commented Jan 1, 2022

What this PR does / why we need it:

Related with compose-spec/compose-go#213

This feature describe the SELinux field for setting the :z or :Z bind option for relabeling SELinux label.

References:

Which issue(s) this PR fixes:

Fixes #191

Signed-off-by: Tymoteusz Blazejczyk tymoteusz.blazejczyk@tymonx.com

Related with compose-spec/compose-go#213

This feature describe the SELinux field for setting the :z or :Z
bind option for relabeling SELinux label.

It fixes compose-spec#191

References:
- https://docs.docker.com/storage/bind-mounts/#configure-the-selinux-label

Signed-off-by: Tymoteusz Blazejczyk <tymoteusz.blazejczyk@tymonx.com>
Signed-off-by: Tymoteusz Blazejczyk <tymoteusz.blazejczyk@tymonx.com>
Copy link
Collaborator

@EricHripko EricHripko left a comment

Choose a reason for hiding this comment

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

Thank you for putting this together! I got a small suggestion inline 💬

spec.md Outdated

`VOLUME` MAY be either a host path on the platform hosting containers (bind mount) or a volume name.
`ACCESS_MODE` MAY be set as read-only by using `ro` or read and write by using `rw` (default).
`ACCESS_MODE` is a comma-separated `,` list of options and MAY be set as read-only by using `ro`,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could you please turn it into bullet points (or otherwise break it up) for better readability?

Changed information about volume options from multi sentences
long description to bullet list of options for better readability.

Signed-off-by: Tymoteusz Blazejczyk <tymoteusz.blazejczyk@tymonx.com>
@tymonx
Copy link
Contributor Author

tymonx commented Jan 7, 2022

@EricHripko I like it 🔥 I have changed to bullet list as suggested in this commit f9ca0f6. I think it looks more readable now in that way.

@ndeloof ndeloof merged commit 0fb8d23 into compose-spec:master Jan 7, 2022
@ndeloof ndeloof mentioned this pull request Mar 4, 2022
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.

Document volumes shorthand :z and :Z suffixes used in docker.

3 participants