-
Notifications
You must be signed in to change notification settings - Fork 524
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
selinux-policy: protect snapshot layers from modification
Now that we have the machinery in place to provide a "context" option for overlayfs mounts, we can use a read-only type for file objects in the lower directories. We also record the type in `lxc_contexts` for programs that rely on that file for discovery. `host-ctr` now runs with the same type as the other container runtime components, because it handles the `mount()` syscall. The kernel will try to create a "work" subdirectory in workdir during the mount, so the calling process needs permissions to do so. Signed-off-by: Ben Cressey <bcressey@amazon.com>
- Loading branch information
Showing
3 changed files
with
11 additions
and
2 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,2 +1,3 @@ | ||
process = "system_u:system_r:container_t:s0" | ||
file = "system_u:object_r:local_t:s0" | ||
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