summaryrefslogtreecommitdiff
path: root/plugin/server_audit
Commit message (Collapse)AuthorAgeFilesLines
* Merge 10.3 into 10.4Eugene Kosov2019-07-262-5/+5
|\
| * MDEV-18350 Using audit plugin with MySQL, mysqld crashes when running ↵Alexey Botchkov2019-07-262-5/+5
| | | | | | | | | | | | | | COM_INIT_DB against invalid database. mysql_event_general structure changed in 10.3. the database_length should be size_t now instead of the int.
* | Merge 10.3 into 10.4Marko Mäkelä2019-07-251-11/+28
|\ \ | |/
| * Merge 10.2 into 10.3Eugene Kosov2019-07-161-11/+28
| |\
| | * Merge 10.1 into 10.2Eugene Kosov2019-07-091-11/+28
| | |\
| | | * Make Win compiler happy about the SERVER_AUDIT code.HF2019-07-062-24/+24
| | | |
| | | * Make Win compiler happy.HF2019-07-051-1/+3
| | | |
| | | * MDEV-19851 server_audit plugin should not allow ↵Alexey Botchkov2019-07-031-1/+16
| | | | | | | | | | | | | | | | | | | | | | | | server_audit_output_type=SYSLOG on Windows. 'syslog' output type disabled on Windows.
* | | | Merge 10.3 into 10.4Marko Mäkelä2019-07-021-43/+68
|\ \ \ \ | |/ / /
| * | | Merge 10.2 into 10.3Marko Mäkelä2019-07-021-43/+67
| |\ \ \ | | |/ /
| | * | Merge 10.1 into 10.2Eugene Kosov2019-06-231-43/+67
| | |\ \ | | | |/
| | | * MDEV-18661 loading the audit plugin causes performance regression.Alexey Botchkov2019-06-151-44/+68
| | | | | | | | | | | | | | | | | | | | | | | | Plugin fixed to not lock the LOCK_operations when not active. Server fixed to lock the LOCK_plugin less - do it once per thread and then only if a plugin was installed/uninstalled.
* | | | Merge 10.3 into 10.4Marko Mäkelä2019-05-291-6/+9
|\ \ \ \ | |/ / /
| * | | Merge 10.2 into 10.3Marko Mäkelä2019-05-291-6/+9
| |\ \ \ | | |/ /
| | * | MDEV-17456 Malicious SUPER user can possibly change audit log configuration ↵Alexey Botchkov2019-05-191-6/+9
| | | | | | | | | | | | | | | | | | | | | | | | without leaving traces. Fix for the SET GLOBAL server_audit_loggin=on; added.
* | | | Merge branch '10.3' into 10.4Oleksandr Byelkin2019-05-194-5/+5
|\ \ \ \ | |/ / /
| * | | Merge 10.2 into 10.3Marko Mäkelä2019-05-144-5/+5
| |\ \ \ | | |/ /
| | * | Merge 10.1 into 10.2Marko Mäkelä2019-05-134-5/+5
| | |\ \ | | | |/
| | | * Merge branch '5.5' into 10.1Vicențiu Ciorbaru2019-05-112-3/+3
| | | |\
| | | | * Update FSF AddressVicențiu Ciorbaru2019-05-112-3/+3
| | | | | | | | | | | | | | | | | | | | * Update wrong zip-code
| | | * | Merge branch '5.5' into 10.1Vicențiu Ciorbaru2019-05-112-2/+2
| | | |\ \ | | | | |/
| | | | * Update FSF addressMichal Schorm2019-05-102-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit is based on the work of Michal Schorm, rebased on the earliest MariaDB version. Th command line used to generate this diff was: find ./ -type f \ -exec sed -i -e 's/Foundation, Inc., 59 Temple Place, Suite 330, Boston, /Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, /g' {} \; \ -exec sed -i -e 's/Foundation, Inc. 59 Temple Place.* Suite 330, Boston, /Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, /g' {} \; \ -exec sed -i -e 's/MA.*.....-1307.*USA/MA 02110-1335 USA/g' {} \; \ -exec sed -i -e 's/Foundation, Inc., 59 Temple/Foundation, Inc., 51 Franklin/g' {} \; \ -exec sed -i -e 's/Place, Suite 330, Boston, MA.*02111-1307.*USA/Street, Fifth Floor, Boston, MA 02110-1335 USA/g' {} \; \ -exec sed -i -e 's/MA.*.....-1307/MA 02110-1335/g' {} \;
| | | | * 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.
* | | | | Merge 10.3 into 10.4Marko Mäkelä2019-05-051-9/+60
|\ \ \ \ \ | |/ / / /
| * | | | Merge 10.2 into 10.3Marko Mäkelä2019-04-291-9/+60
| |\ \ \ \ | | |/ / /
| | * | | Remove a type cast, and use correct format insteadMarko Mäkelä2019-04-291-2/+2
| | | | |
| | * | | Make Win compiler happy.Alexey Botchkov2019-04-291-1/+1
| | | | |
| | * | | MDEV-17456 Malicious SUPER user can possibly change audit log configuration ↵Alexey Botchkov2019-04-291-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | without leaving traces. The 'SET server_audit_logging ' statements should be logged no matter what.
| | * | | MDEV-19141 server_audit_excl_users accepts only values with less than 1024 ↵Alexey Botchkov2019-04-291-6/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | chars. Since this limit is imposed by the SHOW_VAR_FUNC_BUFF_SIZE, we just launch the error message.
* | | | | Merge 10.3 into 10.4Marko Mäkelä2019-03-221-6/+7
|\ \ \ \ \ | |/ / / /
| * | | | Merge remote-tracking branch 'origin/10.2' into 10.3Alexander Barkov2019-03-221-6/+7
| |\ \ \ \ | | |/ / /
| | * | | Merge 10.1 into 10.2Marko Mäkelä2019-03-221-6/+7
| | |\ \ \ | | | |/ /
| | | * | Merge 10.0 into 10.1Marko Mäkelä2019-03-211-6/+7
| | | |\ \
| | | | * | 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 "")