-
Notifications
You must be signed in to change notification settings - Fork 522
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1318 from bcressey/default-container-label
modify default label for containers
- Loading branch information
Showing
3 changed files
with
26 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,12 @@ | ||
# Runtimes that use the Go SELinux implementation, such as Docker and | ||
# the containerd CRI plugin, will apply the 'process' label to the | ||
# initial process for unprivileged containers, unless the option for | ||
# automatic labeling is disabled. | ||
process = "system_u:system_r:container_t:s0" | ||
|
||
# The 'file' label should always be applied to the container's root | ||
# filesystem, regardless of privileged status or automatic labeling. | ||
file = "system_u:object_r:local_t:s0" | ||
|
||
# The 'ro_file' label is not currently used by the above runtimes. | ||
ro_file = "system_u:object_r:cache_t:s0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters