Services and User Management
Two containers on a RHEL host with SELinux enforcing must both read and write /srv/shared. The first container was started with the option -v /srv/shared:/data:Z. When the second container starts with the same option, the first container loses access. SELinux separation must stay enabled. What should the administrator do?
Show the answer
Correct answerC. Mount the directory with :z in both containers so it gets a shared container_file_t label
The lowercase :z option applies a shared container_file_t label that multiple containers can access. Uppercase :Z applies a private label for one container, so each new relabel locks out the previous one; restorecon would only restore the default label.