diff --git a/libcontainer/rootfs_linux.go b/libcontainer/rootfs_linux.go index fecb5d44eb1..35eabbe31c7 100644 --- a/libcontainer/rootfs_linux.go +++ b/libcontainer/rootfs_linux.go @@ -1080,7 +1080,7 @@ func remount(m *configs.Mount, rootfs string, mountFd *int) error { return err } // ... and retry the mount with flags found above. - flags |= uintptr(s.Flags&(unix.MS_RDONLY|unix.MS_NODEV|unix.MS_NOEXEC|unix.MS_NOSUID)) + flags |= uintptr(s.Flags & (unix.MS_RDONLY | unix.MS_NODEV | unix.MS_NOEXEC | unix.MS_NOSUID)) return mount(source, m.Destination, procfd, m.Device, flags, "") }) }