disconnect stdio for wasm binaries
This commit is contained in:
parent
18be4910d8
commit
45d7f3ca4b
1 changed files with 6 additions and 1 deletions
|
@ -43,5 +43,10 @@ if [ -n "$wasm" ]; then
|
||||||
# Use --force-interpreter to avoid wasmedge running AOT native
|
# Use --force-interpreter to avoid wasmedge running AOT native
|
||||||
# instructions, which is insecure if the WASM binary comes from
|
# instructions, which is insecure if the WASM binary comes from
|
||||||
# an untrusted source.
|
# an untrusted source.
|
||||||
wasmedge --dir "/:`pwd`" --force-interpreter -- "$wasm" "$@" >&2
|
#
|
||||||
|
# Avoid displaying output from the WASM binary, since it is
|
||||||
|
# untrusted, and could contain harmful terminal escape sequences,
|
||||||
|
# for example.
|
||||||
|
wasmedge --dir "/:`pwd`" --force-interpreter -- "$wasm" "$@" \
|
||||||
|
>/dev/null 2>/dev/null </dev/null
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue