diff options
| author | Christian Göttsche | 2024-05-27 21:33:00 +0200 |
|---|---|---|
| committer | jvoisin | 2024-06-09 17:16:16 +0200 |
| commit | c7ce5c3528e8da8762e6e7067001549e109397ba (patch) | |
| tree | 4c9606730af25a8f893193b7cc5cb718a20c3f35 /src/sp_config.h | |
| parent | 849252c6a48b428dde3ad8930b40a2bdf9874cb7 (diff) | |
Add option to specify the allowed "php" wrapper types
In addition of the current possibility to filter wrappers by their
protocol name, also add the option to filter the "php" wrapper by the
requested kind.
Especially the 'filter' backend can be disabled that way.
Diffstat (limited to 'src/sp_config.h')
| -rw-r--r-- | src/sp_config.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sp_config.h b/src/sp_config.h index f245943..af227ba 100644 --- a/src/sp_config.h +++ b/src/sp_config.h | |||
| @@ -70,6 +70,7 @@ typedef struct { | |||
| 70 | 70 | ||
| 71 | typedef struct { | 71 | typedef struct { |
| 72 | sp_list_node *whitelist; | 72 | sp_list_node *whitelist; |
| 73 | sp_list_node *php_stream_allowlist; | ||
| 73 | bool enabled; | 74 | bool enabled; |
| 74 | size_t num_wrapper; // Used to verify if wrappers were added. | 75 | size_t num_wrapper; // Used to verify if wrappers were added. |
| 75 | } sp_config_wrapper; | 76 | } sp_config_wrapper; |
| @@ -214,6 +215,7 @@ typedef struct { | |||
| 214 | #define SP_TOKEN_EVAL_WHITELIST "eval_whitelist" | 215 | #define SP_TOKEN_EVAL_WHITELIST "eval_whitelist" |
| 215 | #define SP_TOKEN_SLOPPY_COMPARISON "sloppy_comparison" | 216 | #define SP_TOKEN_SLOPPY_COMPARISON "sloppy_comparison" |
| 216 | #define SP_TOKEN_ALLOW_WRAPPERS "wrappers_whitelist" | 217 | #define SP_TOKEN_ALLOW_WRAPPERS "wrappers_whitelist" |
| 218 | #define SP_TOKEN_ALLOW_PHP_STREAMS "php_list" | ||
| 217 | #define SP_TOKEN_INI_PROTECTION "ini_protection" | 219 | #define SP_TOKEN_INI_PROTECTION "ini_protection" |
| 218 | #define SP_TOKEN_INI "ini" | 220 | #define SP_TOKEN_INI "ini" |
| 219 | 221 | ||
