src,pm: disable WASI when pm is enabled
Following up https://hackerone.com/reports/2470213.
The permission model currently does not cover WASI by default, and that's expected. But, it seems that I failed to document it properly (A (brief) documentation effort was made on https://github.com/nodejs/node/pull/47782). I am creating a --allow-wasi flag to address this issue and potentially block WASI entirely.
Review requested:
- [ ] @nodejs/gyp
- [ ] @nodejs/security-wg
- [ ] @nodejs/wasi
CI: https://ci.nodejs.org/job/node-test-pull-request/59393/
CI: https://ci.nodejs.org/job/node-test-pull-request/59528/
CI: https://ci.nodejs.org/job/node-test-pull-request/59546/
Landed in 3ab0499d434078676261512a67897f4c2f433e43