question: sandbox for following symlinks

オープン
#226 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
c

調査の方向性

マージされた issue #224 に関する前提を確認し、その後、列挙されたケースを wasmtime と比較しながら、uvwasi の symlink および sandbox パスの処理を追跡します。uvwasi の動作が想定どおりかどうかを明らかにできれば完了です。実装の変更やリグレッションテストのカバレッジが必要になった場合は、メンテナーの指示が必要です。

索引モデルが issue の本文から書いたものです。

説明

question

It looks there is differences about handling symlinks between uvwasi and wasmtime.

Assuming #224 was merged and given the file path is /var/dir/file and sandbox root is /var/dir:

Link Target \ Runtime wasmtime uvwasi (memo)
/var/dir/file NG OK wasmtime prohibits absolute paths without exception
./file OK OK
../file NG NG not in the sandbox root
../dir/file NG OK wasmtime prohibits relative paths referencing a path that once deviates from the root of the sandbox

I'd like to know whether this is expected behavior for uvwasi.

主要言語
C
スター
272
フォーク
62
平均マージ
2時間 52分
マージ済み PR(30日)
1

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

nodejs/uvwasi のほかの issue

nodejs/uvwasi の issue をすべて見る

似ている issue

C の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。