diff options
author | Bradley Farias <bradley.meck@gmail.com> | 2019-06-05 13:33:07 -0500 |
---|---|---|
committer | Michaƫl Zasso <targos@protonmail.com> | 2019-07-22 21:20:42 +0200 |
commit | 2eeb44f3facb58dacbcb2f270d4f169a2c81ee08 (patch) | |
tree | cb3ecdb07852362d181312eb6ffd204d86199b09 /test/fixtures/policy | |
parent | cf811ecd47cf2c4f5bec2b27577c6d414842b703 (diff) | |
download | android-node-v8-2eeb44f3facb58dacbcb2f270d4f169a2c81ee08.tar.gz android-node-v8-2eeb44f3facb58dacbcb2f270d4f169a2c81ee08.tar.bz2 android-node-v8-2eeb44f3facb58dacbcb2f270d4f169a2c81ee08.zip |
policy: add policy-integrity to mitigate policy tampering
PR-URL: https://github.com/nodejs/node/pull/28734
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Guy Bedford <guybedford@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'test/fixtures/policy')
-rw-r--r-- | test/fixtures/policy/dep-policy.json | 7 | ||||
-rw-r--r-- | test/fixtures/policy/dep.js | 2 |
2 files changed, 9 insertions, 0 deletions
diff --git a/test/fixtures/policy/dep-policy.json b/test/fixtures/policy/dep-policy.json new file mode 100644 index 0000000000..6cc483a578 --- /dev/null +++ b/test/fixtures/policy/dep-policy.json @@ -0,0 +1,7 @@ +{ + "resources": { + "./dep.js": { + "integrity": "sha512-7CMcc2oytFfMnGQaXbJk84gYWF2J7p/fmWPW7dsnJyniD+vgxtK9VAZ/22UxFOA4q5d27RoGLxSqNZ/nGCJkMw== sha512-scgN9Td0bGMlGH2lUHvEeHtz92Hx6AO+sYhU3WRI6bn3jEUCXbXJs68nOOsGzRWR7a2tbqGoETnOCpHHf1Njhw==" + } + } +} diff --git a/test/fixtures/policy/dep.js b/test/fixtures/policy/dep.js new file mode 100644 index 0000000000..1c61a090d2 --- /dev/null +++ b/test/fixtures/policy/dep.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = 'The Secret Ingredient'; |