mirror of
https://github.com/criyle/go-judge.git
synced 2025-11-04 14:50:02 +08:00
fix bind mount for newer kernel
This commit is contained in:
parent
cb27f84136
commit
405a90a0d1
2
env/mount_linux.go
vendored
2
env/mount_linux.go
vendored
@ -76,7 +76,7 @@ func getDefaultMount(tmpFsConf string) *mount.Builder {
|
|||||||
// ghc wants /var/lib/ghc
|
// ghc wants /var/lib/ghc
|
||||||
WithBind("/var/lib/ghc", "var/lib/ghc", true).
|
WithBind("/var/lib/ghc", "var/lib/ghc", true).
|
||||||
// javaScript wants /dev/urandom
|
// javaScript wants /dev/urandom
|
||||||
WithBind("/dev/urandom", "dev/urandom", true).
|
WithBind("/dev/urandom", "dev/urandom", false).
|
||||||
// work dir
|
// work dir
|
||||||
WithTmpfs("w", tmpFsConf).
|
WithTmpfs("w", tmpFsConf).
|
||||||
// tmp dir
|
// tmp dir
|
||||||
|
|||||||
@ -39,7 +39,6 @@ mount:
|
|||||||
- type: bind
|
- type: bind
|
||||||
source: /dev/urandom
|
source: /dev/urandom
|
||||||
target: /dev/urandom
|
target: /dev/urandom
|
||||||
readonly: true
|
|
||||||
# work dir
|
# work dir
|
||||||
- type: tmpfs
|
- type: tmpfs
|
||||||
target: /w
|
target: /w
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user