diff --git a/lib/core/fs.js b/lib/core/fs.js index 99332f56..ac1d3d82 100644 --- a/lib/core/fs.js +++ b/lib/core/fs.js @@ -12,8 +12,11 @@ const pathConfigs = { function restrictPath(receiver, binding, count, args) { const dapp = dappPath(); + const embark = embarkPath(); + const allowedRoots = [ dapp, + embark, os.tmpdir() ]; @@ -187,6 +190,7 @@ module.exports = { mkdirpSync, move, moveSync, + outputFileSync, readFile, readFileSync, readJSONSync,