Marko Mäkelä
f98bb23168
Merge 10.3 into 10.4
2019-05-29 22:17:00 +03:00
Marko Mäkelä
90a9193685
Merge 10.2 into 10.3
2019-05-29 11:32:46 +03:00
Alexey Botchkov
d4e9a50e88
MDEV-17456 Malicious SUPER user can possibly change audit log configuration without leaving traces.
...
Fix for the SET GLOBAL server_audit_loggin=on; added.
2019-05-19 23:50:23 +04:00
Oleksandr Byelkin
c07325f932
Merge branch '10.3' into 10.4
2019-05-19 20:55:37 +02:00
Marko Mäkelä
be85d3e61b
Merge 10.2 into 10.3
2019-05-14 17:18:46 +03:00
Marko Mäkelä
26a14ee130
Merge 10.1 into 10.2
2019-05-13 17:54:04 +03:00
Vicențiu Ciorbaru
f177f125d4
Merge branch '5.5' into 10.1
2019-05-11 19:15:57 +03:00
Michal Schorm
17b4f99928
Update FSF address
...
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' {} \;
2019-05-10 20:52:00 +03:00
Marko Mäkelä
d3dcec5d65
Merge 10.3 into 10.4
2019-05-05 15:06:44 +03:00
Marko Mäkelä
447b8ba164
Merge 10.2 into 10.3
2019-04-29 17:54:10 +03:00
Marko Mäkelä
cc359eae3b
Remove a type cast, and use correct format instead
2019-04-29 09:24:59 +03:00
Alexey Botchkov
bb4f4b3a1b
Make Win compiler happy.
2019-04-29 02:32:13 +04:00
Alexey Botchkov
a529188e05
MDEV-17456 Malicious SUPER user can possibly change audit log configuration without leaving traces.
...
The 'SET server_audit_logging ' statements should be logged no matter
what.
2019-04-29 01:25:17 +04:00
Alexey Botchkov
cd26cdcd97
MDEV-19141 server_audit_excl_users accepts only values with less than 1024 chars.
...
Since this limit is imposed by the SHOW_VAR_FUNC_BUFF_SIZE, we just
launch the error message.
2019-04-29 00:11:48 +04:00
Marko Mäkelä
ca80e14a88
Merge 10.3 into 10.4
2019-03-22 13:20:44 +02:00
Alexander Barkov
1c60f40868
Merge remote-tracking branch 'origin/10.2' into 10.3
2019-03-22 14:41:36 +04:00
Marko Mäkelä
031fa8f1d2
Merge 10.1 into 10.2
2019-03-22 11:15:21 +02:00
Marko Mäkelä
8c493a910f
Merge 10.0 into 10.1
2019-03-21 21:06:01 +02:00
Marko Mäkelä
5d454181a8
MDEV-6262 follow-up: Ensure NUL termination on strncpy()
2019-03-21 10:29:59 +02:00
Sergei Golubchik
c9061d1102
mysys: rename ME_xxx flags to match plugin api
2018-06-04 12:32:23 +02:00
Marko Mäkelä
15419a5583
Merge 10.2 into 10.3
2018-05-12 22:14:59 +03:00
Marko Mäkelä
82f0dc35aa
Merge 10.1 into 10.2
2018-05-11 18:33:58 +03:00
Alexey Botchkov
dab4abbb09
MDEV-15480 Audit plugin does not respect QUERY_DML for audit plugin.
...
QUERY_DML_NO_SELECT flag added.
2018-05-10 19:23:35 +04:00
Alexey Botchkov
3cbfe8cc47
MDEV-15480 Audit plugin does not respect QUERY_DML for audit plugin.
...
QUERY_DML_NO_SELECT flag added.
2018-05-10 19:17:06 +04:00
Alexey Botchkov
318097bb8f
MDEV-15480 Audit plugin does not respect QUERY_DML for audit plugin.
...
QUERY_DML_NO_SELECT flag added.
2018-05-10 19:00:54 +04:00
Vladislav Vaintroub
56e7b7eaed
Make possible to use clang on Windows (clang-cl)
...
-DWITH_ASAN can be used as well now, on x64
Fix many clang-cl warnings.
2018-02-20 21:17:36 +00:00
Marko Mäkelä
b006d2ead4
Merge bb-10.2-ext into 10.3
2018-02-15 10:22:03 +02:00
Sergei Golubchik
4771ae4b22
Merge branch 'github/10.1' into 10.2
2018-02-06 14:50:50 +01:00
Vladislav Vaintroub
502e2445e6
Fix warnings
2018-02-06 14:22:15 +01:00
Monty
a7e352b54d
Changed database, tablename and alias to be LEX_CSTRING
...
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 "")
2018-01-30 21:33:55 +02:00
Alexander Barkov
c7a2f23a7b
Merge remote-tracking branch 'origin/bb-10.2-ext' into 10.3
2018-01-29 12:44:20 +04:00
Vladislav Vaintroub
9891ee5a2a
Fix and reenable Windows compiler warning C4800 (size_t conversion).
2018-01-26 10:37:46 +00:00
Marko Mäkelä
a48aa0cd56
Merge bb-10.2-ext into 10.3
2017-11-10 16:12:45 +02:00
Marko Mäkelä
843e4508c0
Merge 10.1 into 10.2
2017-11-07 23:02:39 +02:00
Alexey Botchkov
6ceb49a941
MDEV-13921 Audit log writes invalid SQL if single-line comments are
...
present.
thread_pool_server_audit.test fixed.
plugin version updated.
2017-11-03 22:43:51 +04:00
Alexey Botchkov
1394ea6965
MDEV-13921 Audit log writes invalid SQL if single-line comments are
...
present.
thread_pool_server_audit.test fixed.
plugin version updated.
2017-11-03 22:40:44 +04:00
Alexey Botchkov
c64a697bba
MDEV-13921 Audit log writes invalid SQL if single-line comments are
...
present.
thread_pool_server_audit.test fixed.
plugin version updated.
2017-11-03 22:36:58 +04:00
Alexey Botchkov
3a3f1328fe
MDEV-13921 Audit log writes invalid SQL if single-line comments are
...
present.
Escape special characters (like \r \n \t) instead of
replacing them with spaces.
2017-11-03 17:15:55 +04:00
Alexey Botchkov
04daf30e9b
MDEV-13921 Audit log writes invalid SQL if single-line comments are
...
present.
Escape special characters (like \r \n \t) instead of
replacing them with spaces.
2017-11-03 17:10:36 +04:00
Alexey Botchkov
2e964b233b
MDEV-13921 Audit log writes invalid SQL if single-line comments are
...
present.
Escape special characters (like \r \n \t) instead of
replacing them with spaces.
2017-11-03 17:05:41 +04:00
Marko Mäkelä
2c1067166d
Merge bb-10.2-ext into 10.3
2017-10-04 08:24:06 +03:00
Marko Mäkelä
6ca35c1428
Replace a non-ASCII character in a comment
2017-10-04 08:07:41 +03:00
Vladislav Vaintroub
4732767981
Fix Windows warnings : fix server_audit not to use my_win_open and Co
...
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.
2017-10-03 19:42:16 +00:00
Vladislav Vaintroub
7354dc6773
MDEV-13384 - misc Windows warnings fixed
2017-09-28 17:20:46 +00:00
Marko Mäkelä
e3d44f5d62
Merge bb-10.2-ext into 10.3
2017-09-21 08:12:19 +03:00
Vicențiu Ciorbaru
2d9f5f69d4
Merge branch '10.1' into 10.2
2017-09-20 10:46:09 +03:00
Alexey Botchkov
99fbf3eb59
MDEV-13137 MySQL 5.6.23 Crashes when SET GLOBAL server_audit_logging=OFF;
...
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.
2017-09-19 14:01:12 +04:00
Alexey Botchkov
389f7cdf3c
MDEV-13137 MySQL 5.6.23 Crashes when SET GLOBAL server_audit_logging=OFF;
...
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.
2017-09-19 13:43:36 +04:00
Alexey Botchkov
a47d16907d
MDEV-13137 MySQL 5.6.23 Crashes when SET GLOBAL server_audit_logging=OFF;
...
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.
2017-09-19 13:08:24 +04:00
Sergei Golubchik
7e56e9ea77
MDEV-13650 Backport fix for MDEV-13060 (crash when both AWS plugin and 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
2017-09-18 10:40:26 +02:00