summaryrefslogtreecommitdiff
path: root/plugin/server_audit/server_audit.c
Commit message (Collapse)AuthorAgeFilesLines
...
| | | | * | MDEV-6262 follow-up: Ensure NUL termination on strncpy()Marko Mäkelä2019-03-211-6/+7
| | | | | |
| | | | * | MDEV-15480 Audit plugin does not respect QUERY_DML for audit plugin.Alexey Botchkov2018-05-101-4/+25
| | | | | | | | | | | | | | | | | | | | | | | | QUERY_DML_NO_SELECT flag added.
| | | | * | MDEV-13921 Audit log writes invalid SQL if single-line comments areAlexey Botchkov2017-11-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | present. thread_pool_server_audit.test fixed. plugin version updated.
| | | | * | MDEV-13921 Audit log writes invalid SQL if single-line comments areAlexey Botchkov2017-11-031-18/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | present. Escape special characters (like \r \n \t) instead of replacing them with spaces.
| | | | * | MDEV-13137 MySQL 5.6.23 Crashes when SET GLOBAL server_audit_logging=OFF;Alexey Botchkov2017-09-191-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The MySQL 5.6 doesn't always send the MYSQL_AUDIT_GENERAL_LOG notification. So we have to suppress the log_current_query() in this case.
* | | | | | mysys: rename ME_xxx flags to match plugin apiSergei Golubchik2018-06-041-5/+5
|/ / / / /
* | | | | Merge 10.2 into 10.3Marko Mäkelä2018-05-121-4/+25
|\ \ \ \ \ | |/ / / /
| * | | | Merge 10.1 into 10.2Marko Mäkelä2018-05-111-4/+25
| |\ \ \ \ | | |/ / /
| | * | | MDEV-15480 Audit plugin does not respect QUERY_DML for audit plugin.Alexey Botchkov2018-05-101-4/+25
| | | | | | | | | | | | | | | | | | | | QUERY_DML_NO_SELECT flag added.
* | | | | Make possible to use clang on Windows (clang-cl)Vladislav Vaintroub2018-02-201-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | -DWITH_ASAN can be used as well now, on x64 Fix many clang-cl warnings.
* | | | | Merge bb-10.2-ext into 10.3Marko Mäkelä2018-02-151-1/+1
|\ \ \ \ \ | |/ / / /
| * | | | Merge branch 'github/10.1' into 10.2Sergei Golubchik2018-02-061-1/+1
| |\ \ \ \ | | |/ / /
* | | | | Fix warningsVladislav Vaintroub2018-02-061-1/+1
| | | | |
* | | | | Changed database, tablename and alias to be LEX_CSTRINGMonty2018-01-301-19/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This was done in, among other things: - thd->db and thd->db_length - TABLE_LIST tablename, db, alias and schema_name - Audit plugin database name - lex->db - All db and table names in Alter_table_ctx - st_select_lex db Other things: - Changed a lot of functions to take const LEX_CSTRING* as argument for db, table_name and alias. See init_one_table() as an example. - Changed some function arguments from LEX_CSTRING to const LEX_CSTRING - Changed some lists from LEX_STRING to LEX_CSTRING - threads_mysql.result changed because process list_db wasn't always correctly updated - New append_identifier() function that takes LEX_CSTRING* as arguments - Added new element tmp_buff to Alter_table_ctx to separate temp name handling from temporary space - Ensure we store the length after my_casedn_str() of table/db names - Removed not used version of rename_table_in_stat_tables() - Changed Natural_join_column::table_name and db_name() to never return NULL (used for print) - thd->get_db() now returns db as a printable string (thd->db.str or "")
* | | | | Merge remote-tracking branch 'origin/bb-10.2-ext' into 10.3Alexander Barkov2018-01-291-15/+15
|\ \ \ \ \ | |/ / / /
| * | | | Fix and reenable Windows compiler warning C4800 (size_t conversion).Vladislav Vaintroub2018-01-261-15/+15
| | | | |
* | | | | Merge bb-10.2-ext into 10.3Marko Mäkelä2017-11-101-19/+22
|\ \ \ \ \ | |/ / / /
| * | | | Merge 10.1 into 10.2Marko Mäkelä2017-11-071-19/+22
| |\ \ \ \ | | |/ / /
| | * | | MDEV-13921 Audit log writes invalid SQL if single-line comments areAlexey Botchkov2017-11-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | present. thread_pool_server_audit.test fixed. plugin version updated.
| | * | | MDEV-13921 Audit log writes invalid SQL if single-line comments areAlexey Botchkov2017-11-031-18/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | present. Escape special characters (like \r \n \t) instead of replacing them with spaces.
* | | | | Merge bb-10.2-ext into 10.3Marko Mäkelä2017-10-041-32/+29
|\ \ \ \ \ | |/ / / /
| * | | | Replace a non-ASCII character in a commentMarko Mäkelä2017-10-041-1/+1
| | | | |
| * | | | Fix Windows warnings : fix server_audit not to use my_win_open and CoVladislav Vaintroub2017-10-031-31/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | functions. There is no reason to export IO this functionality from server, if it can be easily implemented with CRT. Note: for the sake of compatibility, we do not use _open() on Windows, but open file with CreateFile, with FILE_SHARE_DELETE flag, so it can be renamed or deleted when open. Also atomic append flag is used.
| * | | | MDEV-13384 - misc Windows warnings fixedVladislav Vaintroub2017-09-281-1/+1
| | | | |
* | | | | Merge bb-10.2-ext into 10.3Marko Mäkelä2017-09-211-2/+8
|\ \ \ \ \ | |/ / / /
| * | | | Merge branch '10.1' into 10.2Vicențiu Ciorbaru2017-09-201-2/+8
| |\ \ \ \ | | |/ / /
| | * | | MDEV-13137 MySQL 5.6.23 Crashes when SET GLOBAL server_audit_logging=OFF;Alexey Botchkov2017-09-191-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The MySQL 5.6 doesn't always send the MYSQL_AUDIT_GENERAL_LOG notification. So we have to suppress the log_current_query() in this case.
| | * | | MDEV-13650 Backport fix for MDEV-13060 (crash when both AWS plugin and ↵Sergei Golubchik2017-09-181-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | server_audit are loaded) to 10.1 MDEV-13060 Server Audit Plugin Crashes with AWS KMS plugin don't do auditing if thd is NULL. Collaterals: * copy-paste bugs server_audit.c
* | | | | Enusure that my_global.h is included firstMichael Widenius2017-08-241-5/+3
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Added sql/mariadb.h file that should be included first by files in sql directory, if sql_plugin.h is not used (sql_plugin.h adds SHOW variables that must be done before my_global.h is included) - Removed a lot of include my_global.h from include files - Removed include's of some files that my_global.h automatically includes - Removed duplicated include's of my_sys.h - Replaced include my_config.h with my_global.h
* | | | MDEV-13060 Server Audit Plugin Crashes with AWS KMS pluginSergei Golubchik2017-07-051-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | don't do auditing if thd is NULL. Collaterals: * copy-paste bugs server_audit.c * uninitialized user field when thd in NULL
* | | | Merge 10.1 into 10.2Marko Mäkelä2017-05-231-0/+5
|\ \ \ \ | |/ / /
| * | | Merge 10.0 into 10.1Marko Mäkelä2017-05-231-0/+5
| |\ \ \ | | |/ /
| | * | MDEV-6262 analyze the coverity report on mariadbSergei Golubchik2017-05-191-0/+5
| | | | | | | | | | | | | | | | | | | | uploaded 10.0, analyzed everything with the Impact=High (and a couple of Medium)
* | | | Merge branch '10.1' into 10.2Sergei Golubchik2017-03-301-14/+24
|\ \ \ \ | |/ / /
| * | | Correct FSF addressiangilfillan2017-03-101-1/+1
| |/ /
| * | Merge 5.5 into 10.0Marko Mäkelä2017-03-081-1/+1
| |\ \ | | |/ | | | | | | | | | | | | | | | | | | | | | Also, implement MDEV-11027 a little differently from 5.5: recv_sys_t::report(ib_time_t): Determine whether progress should be reported. recv_apply_hashed_log_recs(): Rename the parameter to last_batch.
| | * MDEV-11084 server_audit does not work with mysql_community 5.7.16.Alexey Botchkov2017-03-061-1/+1
| | | | | | | | | | | | Server audit plugin version updated.
| * | Merge branch '5.5' into 10.0Vicențiu Ciorbaru2017-03-031-12/+22
| |\ \ | | |/
| | * cleanup: NO_OPEN_3 was never definedSergei Golubchik2017-02-271-3/+1
| | |
| | * MDEV-11904 Make Audit Plugin working with MySQL 8.0.Alexey Botchkov2017-02-201-9/+21
| | | | | | | | | | | | | | | MySQL 8.0 basically inherits the 5.7 model, though some modeifications required for the plugin.
* | | Merge branch '10.1' into 10.2Sergei Golubchik2017-02-101-0/+1
|\ \ \ | |/ /
| * | Merge remote-tracking branch 'origin/5.5' into 10.0vicentiu2017-01-061-0/+1
| |\ \ | | |/
| | * MDEV-11510 Audit plugin sometimes causes server to crash when using with MySQL.Alexey Botchkov2016-12-161-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | MySQL has a bug failing to handle MYSQL_THDVAR_STR(... PLUGIN_VAR_NOSYSVAR | PLUGIN_VAR_NOCMDOPT | PLUGIN_VAR_MEMALLOC) so fall back to just PLUGIN_VAR_READONLY | PLUGIN_VAR_MEMALLOC whem MySQL started.
* | | Merge branch '10.1' into 10.2Sergei Golubchik2016-12-291-3/+2
|\ \ \ | |/ /
| * | Merge branch '5.5' into 10.0Sergei Golubchik2016-09-271-3/+2
| |\ \ | | |/
| | * MDEV-10441 Document the server_audit_loc_info variableSergei Golubchik2016-09-261-3/+2
| | | | | | | | | | | | | | | fix PLUGIN_VAR_NOSYSVAR | PLUGIN_VAR_NOCMDOPT plugin thdvars to work. use that for server_audit_loc_info
| * | Fixed failing test cases and compiler warningsMonty2016-04-251-6/+4
| |/ | | | | | | | | | | | | | | | | | | | | - Fixed wait condition in kill_processlist-6619 - Updated Ssl_chiper for openssl tests - Added supression for valgrinds when using libcrypto - Fixed wrong argument to pthread_mutex in server_audit.c when compiling with debug - Adding missing debug_sync_update() to debug_sync.h - Added initializers to some variables and fixed error handling in jsonudf.cpp - Fixed cluster_filter_unpack_varchar which doesn't have a stable index type. - Updated compiler_warnings.supp
* | Merge branch '10.1' into 10.2Sergei Golubchik2016-02-251-4/+8
|\ \ | |/
| * fix buffer overrunVladislav Vaintroub2016-02-151-1/+1
| |
| * Errorneous PSI declaration line fixed.Alexey Botchkov2016-02-121-3/+7
| |