Some container runtimes mount /etc/resolv.conf and /etc/hosts directly into containers, users could also use -V /etc/resolv.conf:/etc/resolv.conf to bind mount them into containers. Currently SELinux blocks the reading of these files. These files are not considered high security targeted and every confined domain is selinux policy is allowed to read these files. No reason not to allow containers to read them also.
Fixed in container-selinux-2.33-1.git86f33cd.el7
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.