Skip to content

Commit 41aa764

Browse files
committed
linux: drop MS_REC for readonly remount
it has no effect. Signed-off-by: Giuseppe Scrivano <[email protected]>
1 parent a4e6955 commit 41aa764

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libcontainer/rootfs_linux.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -741,7 +741,7 @@ func prepareRoot(config *configs.Config) error {
741741
}
742742

743743
func setReadonly() error {
744-
flags := uintptr(unix.MS_BIND | unix.MS_REMOUNT | unix.MS_RDONLY | unix.MS_REC)
744+
flags := uintptr(unix.MS_BIND | unix.MS_REMOUNT | unix.MS_RDONLY)
745745

746746
err := unix.Mount("", "/", "", flags, "")
747747
if err == nil {

0 commit comments

Comments
 (0)