Selinux containers
The Docker SELinux security policy is similar to the libvirt security policy
- Docker launches each container with a unique process SELinux label
container_t
- Labels all of the container content with a single label
container_file_t
This doesn’t work with volumes!!!
To label the file as a volume u have to change it context with
container_file_t
Or if it’s the directort then add the mark :Z
at the and of the volume
- -Z
only one contianer can acess to the volume - -z
multiple
containers can access the volume
Docker Access
Docker has access to - /usr/var/ - /var/lib/docker - /var/lib/containers - most things in /etc.
Tip
Containers can read everything labled
svirt_sandbox_file_t
Udica
Docs TODO!
[Selinux MAIN]({{\< ref “posts/SELinux.md”>}}) [Selinux Containers]({{\< ref “posts/redhat/selinux_containers.md”>}})