mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-06-09 00:34:10 -04:00
Fix predicates for SELinux and ownership management
This commit is contained in:
parent
ac65782e03
commit
a7fc99933b
1 changed files with 1 additions and 1 deletions
|
|
@ -1086,7 +1086,7 @@ func makeMounts(pod *api.Pod, podDir string, container *api.Container, podVolume
|
|||
// If the volume supports SELinux and it has not been
|
||||
// relabeled already and it is not a read-only volume,
|
||||
// relabel it and mark it as labeled
|
||||
if vol.Builder.GetAttributes().SupportsSELinux && !vol.SELinuxLabeled && !vol.Builder.GetAttributes().Managed {
|
||||
if vol.Builder.GetAttributes().Managed && vol.Builder.GetAttributes().SupportsSELinux && !vol.SELinuxLabeled {
|
||||
vol.SELinuxLabeled = true
|
||||
relabelVolume = true
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue