wasm-bpf icon indicating copy to clipboard operation
wasm-bpf copied to clipboard

[BUG] Pass file descriptor instead of file path at `wasm_attach_bpf_program`

Open Officeyutong opened this issue 3 years ago • 0 comments

Currently, we pass attach_target as string and will open the the file in the implementation. This may lead to arbitary access of files and violate the safety of the Wasm sandbox. We should pass file descriptor, which was controlled by the Wasm sandbox, to enhance the safety of the execution.

Officeyutong avatar Mar 01 '23 11:03 Officeyutong