Pārlūkot izejas kodu

Merge pull request #20333 from rhatdan/mqueue

/dev/mqueue should never be mounted readonly
Brian Goff 9 gadi atpakaļ
vecāks
revīzija
be5939f407
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      daemon/execdriver/native/create.go

+ 1 - 1
daemon/execdriver/native/create.go

@@ -104,7 +104,7 @@ func (d *Driver) createContainer(c *execdriver.Command, hooks execdriver.Hooks)
 	if container.Readonlyfs {
 	if container.Readonlyfs {
 		for i := range container.Mounts {
 		for i := range container.Mounts {
 			switch container.Mounts[i].Destination {
 			switch container.Mounts[i].Destination {
-			case "/proc", "/dev", "/dev/pts":
+			case "/proc", "/dev", "/dev/pts", "/dev/mqueue":
 				continue
 				continue
 			}
 			}
 			container.Mounts[i].Flags |= syscall.MS_RDONLY
 			container.Mounts[i].Flags |= syscall.MS_RDONLY