a77846506b
Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@crosbymichael.com> (github: crosbymichael)
12 lines
237 B
Go
12 lines
237 B
Go
// +build linux
|
|
|
|
package mount
|
|
|
|
import (
|
|
"github.com/dotcloud/docker/pkg/system"
|
|
"syscall"
|
|
)
|
|
|
|
func SetReadonly() error {
|
|
return system.Mount("/", "/", "bind", syscall.MS_BIND|syscall.MS_REMOUNT|syscall.MS_RDONLY|syscall.MS_REC, "")
|
|
}
|