diff options
| author | jvoisin | 2017-09-20 10:51:22 +0200 |
|---|---|---|
| committer | jvoisin | 2017-09-21 16:09:28 +0200 |
| commit | 6487590b4fd55dddd59b43f1fcf2ebd8d56f20ac (patch) | |
| tree | 22ff7c8ee4b34a0978093afcc5b747073c625d06 /src/sp_execute.c | |
| parent | 09a71ec9b889af34173e354ecba935a9db010a19 (diff) | |
Add travis
Diffstat (limited to 'src/sp_execute.c')
| -rw-r--r-- | src/sp_execute.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sp_execute.c b/src/sp_execute.c index faf126c..7d62e88 100644 --- a/src/sp_execute.c +++ b/src/sp_execute.c | |||
| @@ -13,10 +13,10 @@ static int (*orig_zend_stream_open)(const char *filename, | |||
| 13 | ZEND_COLD static inline void terminate_if_writable(const char *filename) { | 13 | ZEND_COLD static inline void terminate_if_writable(const char *filename) { |
| 14 | if (0 == access(filename, W_OK)) { | 14 | if (0 == access(filename, W_OK)) { |
| 15 | if (true == SNUFFLEUPAGUS_G(config).config_readonly_exec->simulation) { | 15 | if (true == SNUFFLEUPAGUS_G(config).config_readonly_exec->simulation) { |
| 16 | sp_log_msg("readonly_exec", LOG_NOTICE, | 16 | sp_log_msg("readonly_exec", SP_LOG_NOTICE, |
| 17 | "Attempted execution of a writable file (%s).", filename); | 17 | "Attempted execution of a writable file (%s).", filename); |
| 18 | } else { | 18 | } else { |
| 19 | sp_log_msg("readonly_exec", LOG_DROP, | 19 | sp_log_msg("readonly_exec", SP_LOG_DROP, |
| 20 | "Attempted execution of a writable file (%s).", filename); | 20 | "Attempted execution of a writable file (%s).", filename); |
| 21 | sp_terminate(); | 21 | sp_terminate(); |
| 22 | } | 22 | } |
| @@ -37,7 +37,7 @@ static void check_inclusion_regexp(const char * const filename) { | |||
| 37 | while (config) { | 37 | while (config) { |
| 38 | pcre *config_node = (pcre*)(config->data); | 38 | pcre *config_node = (pcre*)(config->data); |
| 39 | if (false == is_regexp_matching(config_node, filename)) { | 39 | if (false == is_regexp_matching(config_node, filename)) { |
| 40 | sp_log_msg("include", LOG_DROP, "Inclusion of a forbidden file (%s).", filename); | 40 | sp_log_msg("include", SP_LOG_DROP, "Inclusion of a forbidden file (%s).", filename); |
| 41 | sp_terminate(); | 41 | sp_terminate(); |
| 42 | } | 42 | } |
| 43 | config = config->next; | 43 | config = config->next; |
