Skip to content

Commit

Permalink
cli: clarifies it is possible to escape the mount in help
Browse files Browse the repository at this point in the history
Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
  • Loading branch information
mathetake committed Oct 3, 2024
1 parent 51aba37 commit 214e55d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/wazero/wazero.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 214e55d

Please sign in to comment.