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
|
||||
WithBind("/var/lib/ghc", "var/lib/ghc", true).
|
||||
// javaScript wants /dev/urandom
|
||||
WithBind("/dev/urandom", "dev/urandom", true).
|
||||
WithBind("/dev/urandom", "dev/urandom", false).
|
||||
// work dir
|
||||
WithTmpfs("w", tmpFsConf).
|
||||
// tmp dir
|
||||
|
||||
@ -39,7 +39,6 @@ mount:
|
||||
- type: bind
|
||||
source: /dev/urandom
|
||||
target: /dev/urandom
|
||||
readonly: true
|
||||
# work dir
|
||||
- type: tmpfs
|
||||
target: /w
|
||||
|
||||
Loading…
Reference in New Issue
Block a user