diff options
author | Sam Roberts <vieuxtech@gmail.com> | 2017-05-12 12:39:11 -0700 |
---|---|---|
committer | Myles Borins <myles.borins@gmail.com> | 2017-10-25 04:09:42 -0400 |
commit | 12b66e60d79e3188f873a068e1cd7209d4d99e60 (patch) | |
tree | 0b1b9b95b4015ddf499338d96d9813f958229e18 /src/node.cc | |
parent | dd6ea892172cf78eb65024851662ba787f3afc72 (diff) | |
download | node-new-12b66e60d79e3188f873a068e1cd7209d4d99e60.tar.gz |
src: whitelist new options for NODE_OPTIONS
Add --debug-*, --napi-modules
Remove --prof-process, like -p and -e, it causes node to do something
other than run node js scripts.
Backport-PR-URL: https://github.com/nodejs/node/pull/12677
PR-URL: https://github.com/nodejs/node/pull/13002
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Diffstat (limited to 'src/node.cc')
-rw-r--r-- | src/node.cc | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/node.cc b/src/node.cc index c4f2a96c95..7cb4453ad2 100644 --- a/src/node.cc +++ b/src/node.cc @@ -3787,19 +3787,23 @@ static void CheckIfAllowedInEnv(const char* exe, bool is_env, static const char* whitelist[] = { // Node options - "-r", "--require", + "--require", "-r", + "--debug", + "--debug-brk", + "--debug-port", "--no-deprecation", + "--trace-deprecation", + "--throw-deprecation", "--no-warnings", + "--napi-modules", "--trace-warnings", "--redirect-warnings", - "--trace-deprecation", "--trace-sync-io", "--track-heap-objects", - "--throw-deprecation", "--zero-fill-buffers", "--v8-pool-size", - "--use-openssl-ca", "--use-bundled-ca", + "--use-openssl-ca", "--enable-fips", "--force-fips", "--openssl-config", |