Skip to content

Commit 2606919

Browse files
committed
Let user execution stdbuf (compiler-explorer#7307)
Currently only maps in the stdbuf and the lib it needs. Tested locally and paths confirmed to exist on prod boxes. See compiler-explorer#7239
1 parent dd66541 commit 2606919

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

etc/nsjail/user-execution.cfg

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,20 @@ mount {
131131
is_bind: true
132132
}
133133

134+
###
135+
# Support for stdbuf
136+
mount {
137+
src: "/usr/bin/stdbuf"
138+
dst: "/usr/bin/stdbuf"
139+
is_bind: true
140+
}
141+
mount {
142+
src: "/usr/libexec/coreutils/libstdbuf.so"
143+
dst: "/usr/libexec/coreutils/libstdbuf.so"
144+
is_bind: true
145+
}
146+
###
147+
134148
mount {
135149
src: "/dev/nvidia0"
136150
dst: "/dev/nvidia0"

0 commit comments

Comments
 (0)