summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorjvoisin2018-01-10 14:56:33 +0100
committerGitHub2018-01-10 14:56:33 +0100
commitad6b3e723fe26bf1a3a573aed776960916d35499 (patch)
treeeec9e15028f4529d776489d273bf9699333aa987 /doc
parentb6e5bc4557cca3abbcfd179e7143ea54b9844e49 (diff)
Eval whitelist
Implement whitelist in eval
Diffstat (limited to 'doc')
-rw-r--r--doc/source/config.rst9
1 files changed, 5 insertions, 4 deletions
diff --git a/doc/source/config.rst b/doc/source/config.rst
index d16474f..602b78d 100644
--- a/doc/source/config.rst
+++ b/doc/source/config.rst
@@ -251,13 +251,14 @@ Eval white and blacklist
251 * `default: disabled` 251 * `default: disabled`
252 * :ref:`more <eval-feature>` 252 * :ref:`more <eval-feature>`
253 253
254``eval_filter`` allows to specify white and blacklist of functions allowed and 254``eval_whitelist`` and ``eval_blacklist`` allow to respectively specify
255forbidden from being called inside ``eval``. The functions names are comma-separated. 255functions allowed and forbidden from being called inside ``eval``. The
256functions names are comma-separated.
256 257
257:: 258::
258 259
259 sp.eval_filter.blacklist("system,exec,shell_exec"); 260 sp.eval_blacklist.list("system,exec,shell_exec");
260 sp.eval_filter.whitelist("strlen,strcmp").simulation(); 261 sp.eval_whitelist.list("strlen,strcmp").simulation();
261 262
262 263
263Virtual-patching 264Virtual-patching