Mark container hosts file for SELinux relabel
This commit is contained in:
parent
42ff2b3890
commit
ca9a455f2c
@ -137,6 +137,7 @@ func makeHostsMount(podDir, podIP, hostName, hostDomainName string) (*kubecontai
|
|||||||
ContainerPath: etcHostsPath,
|
ContainerPath: etcHostsPath,
|
||||||
HostPath: hostsFilePath,
|
HostPath: hostsFilePath,
|
||||||
ReadOnly: false,
|
ReadOnly: false,
|
||||||
|
SELinuxRelabel: true,
|
||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user