Fix /proc/kcore mount of /dev/null
Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@crosbymichael.com> (github: crosbymichael) Upstream-commit: 24e0df8136c238cb3e231b939a82058950e6eb02 Component: engine
This commit is contained in:
@ -20,8 +20,7 @@ func Restrict() error {
|
||||
return fmt.Errorf("unable to remount %s readonly: %s", dest, err)
|
||||
}
|
||||
}
|
||||
|
||||
if err := system.Mount("/proc/kcore", "/dev/null", "", syscall.MS_BIND, ""); err != nil {
|
||||
if err := system.Mount("/dev/null", "/proc/kcore", "", syscall.MS_BIND, ""); err != nil {
|
||||
return fmt.Errorf("unable to bind-mount /dev/null over /proc/kcore")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user