diff options
author | rahuldhodapkar <rahul.m.dhodapkar@gmail.com> | 2016-01-21 10:30:48 -0500 |
---|---|---|
committer | rahuldhodapkar <rahul.m.dhodapkar@gmail.com> | 2016-02-17 17:17:54 -0500 |
commit | 054d07ae6bcbc4eb408c1d7ba070b4dccdaa9cd3 (patch) | |
tree | 5a76c2ea69431d63072830f572558f2cbe272e01 /src/mongo/scripting/engine.h | |
parent | c666c99bef83a238f0853db3249f5a8543581b4f (diff) | |
download | mongo-054d07ae6bcbc4eb408c1d7ba070b4dccdaa9cd3.tar.gz |
SERVER-9131 prevent automatic function marshalling in shell
add shell flag --enableJavaScriptProtection and server setParameter javascriptProtection
Diffstat (limited to 'src/mongo/scripting/engine.h')
-rw-r--r-- | src/mongo/scripting/engine.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mongo/scripting/engine.h b/src/mongo/scripting/engine.h index dcceb9c07ff..f06333e9a45 100644 --- a/src/mongo/scripting/engine.h +++ b/src/mongo/scripting/engine.h @@ -248,6 +248,9 @@ public: virtual void enableJIT(bool value) = 0; virtual bool isJITEnabled() const = 0; + virtual void enableJavaScriptProtection(bool value) = 0; + virtual bool isJavaScriptProtectionEnabled() const = 0; + static void setup(); static void dropScopeCache(); |