-
Notifications
You must be signed in to change notification settings - Fork 600
Add support for Selinux mount context labels #393
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -545,6 +545,16 @@ Its value is either slave, private, or shared. | |
| ] | ||
| ``` | ||
|
|
||
| ## Mount Label | ||
|
|
||
| `mountLabel` will set the Selinux context for the mounts in the container. | ||
|
|
||
| ###### Example | ||
|
|
||
| ```json | ||
| "mountLabel": "system_u:object_r:svirt_sandbox_file_t:s0:c715,c811" | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good catch. Fixed. |
||
| ``` | ||
|
|
||
| [cgroup-v1]: https://www.kernel.org/doc/Documentation/cgroup-v1/cgroups.txt | ||
| [cgroup-v1-blkio]: https://www.kernel.org/doc/Documentation/cgroup-v1/blkio-controller.txt | ||
| [cgroup-v1-cpusets]: https://www.kernel.org/doc/Documentation/cgroup-v1/cpusets.txt | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -330,6 +330,10 @@ | |
| "readonlyPaths": { | ||
| "id": "https://opencontainers.org/schema/bundle/linux/readonlyPaths", | ||
| "$ref": "defs.json#/definitions/ArrayOfStrings" | ||
| }, | ||
| "mountLabel": { | ||
| "id": "https://opencontainers.org/schema/bundle/linux/mountLabel", | ||
| "type": "string" | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. cool |
||
| } | ||
| } | ||
| } | ||
|
|
||
There was a problem hiding this comment.
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.