cli: clarifies it is possible to escape the mount in help (#2328)
Some checks failed
Test / Pre-commit check (push) Has been cancelled
Test / amd64, ubuntu-22.04, Go-1.21 (push) Has been cancelled
Test / amd64, windows-2022, Go-1.21 (push) Has been cancelled
Test / arm64, macos-14, Go-1.21 (push) Has been cancelled
Test / amd64, ubuntu-22.04, Go-1.23 (push) Has been cancelled
Test / amd64, windows-2022, Go-1.23 (push) Has been cancelled
Test / arm64, macos-14, Go-1.23 (push) Has been cancelled
Test / amd64, Linux (scratch), Go-1.21 (push) Has been cancelled
Test / amd64, Linux (scratch), Go-1.23 (push) Has been cancelled
Test / arm64, Linux (scratch), Go-1.21 (push) Has been cancelled
Test / arm64, Linux (scratch), Go-1.23 (push) Has been cancelled
Test / riscv64, Linux (scratch), Go-1.21 (push) Has been cancelled
Test / riscv64, Linux (scratch), Go-1.23 (push) Has been cancelled
Test / Minimal Fuzzing (ubuntu-22.04, amd64) (push) Has been cancelled
Test / Minimal Fuzzing (macos-14, arm64) (push) Has been cancelled
Standard Library Integration Tests / Build Zig test binary (push) Has been cancelled
Standard Library Integration Tests / Build TinyGo test binary (push) Has been cancelled
Standard Library Integration Tests / wasi-testsuite (macos-14) (push) Has been cancelled
Standard Library Integration Tests / wasi-testsuite (ubuntu-22.04) (push) Has been cancelled
Standard Library Integration Tests / wasi-testsuite (windows-2022) (push) Has been cancelled
Standard Library Integration Tests / Go-1.21 (Ubuntu, amd64) (push) Has been cancelled
Standard Library Integration Tests / Go-1.21 (Windows, amd64) (push) Has been cancelled
Standard Library Integration Tests / Go-1.21 (macOS, arm64) (push) Has been cancelled
Standard Library Integration Tests / Go-1.23 (Ubuntu, amd64) (push) Has been cancelled
Standard Library Integration Tests / Go-1.23 (Windows, amd64) (push) Has been cancelled
Standard Library Integration Tests / Go-1.23 (macOS, arm64) (push) Has been cancelled
Standard Library Integration Tests / libsodium (Ubuntu, amd64) (push) Has been cancelled
Standard Library Integration Tests / libsodium (macOS, arm64) (push) Has been cancelled
Release CLI / Pre-release build (push) Has been cancelled
Standard Library Integration Tests / Zig (Ubuntu, amd64) (push) Has been cancelled
Standard Library Integration Tests / Zig (Windows, amd64) (push) Has been cancelled
Standard Library Integration Tests / Zig (macOS, arm64) (push) Has been cancelled
Standard Library Integration Tests / TinyGo (Ubuntu, amd64) (push) Has been cancelled
Standard Library Integration Tests / TinyGo (Windows, amd64) (push) Has been cancelled
Standard Library Integration Tests / TinyGo (macOS, arm64) (push) Has been cancelled
Release CLI / Pre-release test (macos-14) (push) Has been cancelled
Release CLI / Pre-release test (ubuntu-22.04) (push) Has been cancelled
Release CLI / Pre-release test (windows-2022) (push) Has been cancelled
Release CLI / Release (push) Has been cancelled
internal-images / copy-images (tonistiigi/binfmt:qemu-v6.2.0, binfmt) (push) Has been cancelled

Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
This commit is contained in:
Takeshi Yoneda
2024-10-03 15:48:52 -07:00
committed by GitHub
parent 51aba3703d
commit 6016a705fa

View File

@@ -173,7 +173,9 @@ func doRun(args []string, stdOut io.Writer, stdErr logging.Writer) int {
"Filesystem path to expose to the binary in the form of <path>[:<wasm path>][:ro]. "+
"This may be specified multiple times. When <wasm path> is unset, <path> is used. "+
"For example, -mount=/:/ or c:\\:/ makes the entire host volume writeable by wasm. "+
"For read-only mounts, append the suffix ':ro'.")
"For read-only mounts, append the suffix ':ro'. "+
"Note that the volume mount inherently allows the guest to escape the volume via relative path lookups like '../../'. "+
"If that is not desired, use wazero as a library and implement a custom fs.FS.")
var listens sliceFlag
flags.Var(&listens, "listen",