Description of problem:
Version-Release number of selected component (if applicable):
RHEL 9.1
How reproducible:
/{opt,var}/local-path-provisioner are the default paths used for container local storage and should have the correct SELinux label automatically.
Actual results:
- container-selinux does not automatically set the context for local-path-provisioner
Expected results:
- container-selinux should automatically set the context for local-path-provisioner
Additional info:
Those are not standard OS paths, so they should be labeled locally by the tool defining them.
You can use semanage and restorecon to set the proper labels.
The upstream container-selinux will not handle these labels.
semanage fcontext -a ...
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 (container-selinux bug fix and enhancement update), and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://access.redhat.com/errata/RHBA-2023:6328