mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Fix /proc/kcore mount of /dev/null
Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@crosbymichael.com> (github: crosbymichael)
This commit is contained in:
parent
3f74bdd93f
commit
24e0df8136
1 changed files with 1 additions and 2 deletions
|
@ -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")
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue