mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-10 14:57:42 +00:00
lxc: replace use of term 'slave' filesystem mount setup
Refer to the notion of mount propagation instead which describes the actual behaviour more clearly. Reviewed-by: Peter Krempa <pkrempa@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
764d07838c
commit
d73cd87e81
@ -2116,9 +2116,9 @@ virLXCControllerSetupPrivateNS(void)
|
||||
*
|
||||
* Thus we call unshare(CLONE_NS) so that we can see
|
||||
* the guest's new /dev/pts, without it becoming
|
||||
* visible to the host OS. We also put the root FS
|
||||
* into slave mode, just in case it was currently
|
||||
* marked as shared
|
||||
* visible to the host OS. We also disable mount
|
||||
* propagation out of the root FS, in case it was
|
||||
* currently allowing bi-directional propagation.
|
||||
*/
|
||||
|
||||
return virProcessSetupPrivateMountNS();
|
||||
|
@ -1288,7 +1288,7 @@ virProcessSetupPrivateMountNS(void)
|
||||
|
||||
if (mount("", "/", "none", MS_SLAVE|MS_REC, NULL) < 0) {
|
||||
virReportSystemError(errno, "%s",
|
||||
_("Failed to switch root mount into slave mode"));
|
||||
_("Failed disable mount propagation out of the root filesystem"));
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user