diff options
| author | jvoisin | 2017-12-21 17:41:42 +0100 |
|---|---|---|
| committer | jvoisin | 2017-12-21 17:41:53 +0100 |
| commit | c399f66db5eefaecce065d4f5ea7dcc725b8e106 (patch) | |
| tree | 426f78f1023a7dd41dc72b711bc6c309f3472de0 /doc/source/config.rst | |
| parent | 185eb9601fe179efb160126a7a94a7a7e5c6924e (diff) | |
Improve a bit the documentation wrt. limitations
Diffstat (limited to 'doc/source/config.rst')
| -rw-r--r-- | doc/source/config.rst | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/doc/source/config.rst b/doc/source/config.rst index ceb23bb..5e323db 100644 --- a/doc/source/config.rst +++ b/doc/source/config.rst | |||
| @@ -322,7 +322,7 @@ The ``param`` filter is also able to do some dereferencing: | |||
| 322 | 322 | ||
| 323 | The ``filename`` filter requires a leading ``/``, since paths are absolutes (like ``/var/www/mywebsite/lib/parse.php``). | 323 | The ``filename`` filter requires a leading ``/``, since paths are absolutes (like ``/var/www/mywebsite/lib/parse.php``). |
| 324 | If you would like to have only one configuration file for several vhost in different folders, | 324 | If you would like to have only one configuration file for several vhost in different folders, |
| 325 | you can use the the ``filename_r`` directive to match on the filename (like ``/lib/parse\.php``). | 325 | you can use the ``filename_r`` directive to match on the filename (like ``/lib/parse\.php``). |
| 326 | 326 | ||
| 327 | For clarity, the presence of the ``allow`` or ``drop`` action is **mandatory**. | 327 | For clarity, the presence of the ``allow`` or ``drop`` action is **mandatory**. |
| 328 | 328 | ||
| @@ -333,9 +333,22 @@ For clarity, the presence of the ``allow`` or ``drop`` action is **mandatory**. | |||
| 333 | more narrowed way later, the call will be denied, | 333 | more narrowed way later, the call will be denied, |
| 334 | because it'll match the deny first. | 334 | because it'll match the deny first. |
| 335 | 335 | ||
| 336 | If you're paranoid, we're providing a php script to automatically generate | 336 | If you're paranoid, we're providing a `php script |
| 337 | hash of files containing dangerous functions, | 337 | <https://github.com/nbs-system/snuffleupagus/blob/master/scripts/generate_rules.php>`__ |
| 338 | and blacklisting them everywhere else. | 338 | to automatically generate hash of files containing dangerous functions, and |
| 339 | blacklisting them everywhere else. | ||
| 340 | |||
| 341 | Limitations | ||
| 342 | ^^^^^^^^^^^ | ||
| 343 | |||
| 344 | It's currently not possible to: | ||
| 345 | |||
| 346 | - Hook every `language construct <https://secure.php.net/manual/en/reserved.keywords.php>`__, | ||
| 347 | because each of them requires a specific implementation. | ||
| 348 | - Hook on the return value of user-defined functions | ||
| 349 | - Use extra-convoluted rulesfor matching, like ``${$A}$$B->${'}[1]``, because if you're writing | ||
| 350 | things like this, odds are that you're doing something wrong anyway. | ||
| 351 | |||
| 339 | 352 | ||
| 340 | Examples | 353 | Examples |
| 341 | ^^^^^^^^ | 354 | ^^^^^^^^ |
