MS_REC added to MS_PRIVATE mount on root

This commit is contained in:
Gregory Kurtzer
2021-09-07 14:13:36 -07:00
parent 53b56f76b5
commit 84c0c72219

View File

@@ -31,7 +31,7 @@ func CobraRunE(cmd *cobra.Command, args []string) error {
containerPath := container.RootFsDir(containerName)
err := syscall.Mount("", "/", "", syscall.MS_PRIVATE, "")
err := syscall.Mount("", "/", "", syscall.MS_PRIVATE|syscall.MS_REC, "")
if err != nil {
return errors.Wrap(err, "failed to mount")
}