diff options
author | Antenore Gatta (tmow) <antenore@simbiosi.org> | 2022-01-07 11:30:51 +0300 |
---|---|---|
committer | Antenore Gatta (tmow) <antenore@simbiosi.org> | 2022-01-07 11:30:51 +0300 |
commit | 8272aeb7c79872a38e845d1c87edc9517bcb6754 (patch) | |
tree | ed337547b8cbaf9d4d5a93d53116aef0ac78f157 /plugins/www | |
parent | e5f27de6ad23f85dd1cfcd0ec560b2c54234c58a (diff) |
Auditing facility
This patch add a macro to log auditing traces, this traces will be
shown when the audit is enabled in the general preferences (security):
- in the linux journal if available
- if Remmina has been started with the Remmina Desktop file
- if started from the terminal
- from the terminal if G_MESSAGES_DEBUG=all is set (always).
Signed-off-by: Antenore Gatta (tmow) <antenore@simbiosi.org>
Diffstat (limited to 'plugins/www')
-rw-r--r-- | plugins/www/www_plugin.h | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/plugins/www/www_plugin.h b/plugins/www/www_plugin.h index 0a06d290e..b599d597f 100644 --- a/plugins/www/www_plugin.h +++ b/plugins/www/www_plugin.h @@ -48,8 +48,27 @@ typedef enum { } WWWWebViewDocumentType; extern RemminaPluginService *remmina_plugin_service; -#define REMMINA_PLUGIN_DEBUG(fmt, ...) remmina_plugin_service->_remmina_debug(__func__, fmt, ##__VA_ARGS__) +#define REMMINA_PLUGIN_INFO(fmt, ...) \ + remmina_plugin_service->_remmina_info(__func__, fmt, ##__VA_ARGS__) + +#define REMMINA_PLUGIN_MESSAGE(fmt, ...) \ + remmina_plugin_service->_remmina_message(__func, fmt, ##__VA_ARGS__) + +#define REMMINA_PLUGIN_DEBUG(fmt, ...) \ + remmina_plugin_service->_remmina_debug(__func__, fmt, ##__VA_ARGS__) + +#define REMMINA_PLUGIN_WARNING(fmt, ...) \ + remmina_plugin_service->_remmina_warning(__func__, fmt, ##__VA_ARGS__) + +/* This will intentionally crash Remmina */ +#define REMMINA_PLUGIN_ERROR(fmt, ...) \ + remmina_plugin_service->_remmina_error(__func__, fmt, ##__VA_ARGS__) + +#define REMMINA_PLUGIN_CRITICAL(fmt, ...) \ + remmina_plugin_service->_remmina_critical(__func__, fmt, ##__VA_ARGS__) +#define REMMINA_PLUGIN_AUDIT(fmt, ...) \ + remmina_plugin_service->_remmina_audit(__func__, fmt, ##__VA_ARGS__) G_BEGIN_DECLS void remmina_plugin_www_decide_nav(WebKitPolicyDecision *decision, RemminaProtocolWidget *gp); |