db50919f97
MDEV-27631 Assertion `global_status_var.global_memory_used == 0' failed in mysqld_exit
...
plugin_vars_free_values() was walking plugin sysvars and thus
did not free memory of plugin PLUGIN_VAR_NOSYSVAR vars.
* change it to walk all plugin vars
* add the pluginname_ prefix to NOSYSVARS var names too,
so that plugin_vars_free_values() would be able to find their
bookmarks
2023-01-20 15:44:15 +01:00
3a79e5fd31
Merge 10.3 into 10.4
2021-10-28 08:28:39 +03:00
657bcf928e
Merge 10.2 into 10.3
2021-10-28 07:50:05 +03:00
d627d00b13
MDEV-26556 An improper locking bug(s) due to unreleased lock.
...
Get rid of the global big_buffer.
2021-10-25 19:53:25 +04:00
50de71b026
Merge 10.3 into 10.4
2021-03-31 09:47:14 +03:00
d6d3d9ae2f
Merge 10.2 into 10.3
2021-03-31 08:01:03 +03:00
94dea8ef5b
MDEV-25457 CREATE / DROP PROCEDURE not logged with audit plugin.
...
CREATE/DROP PROCEDIRE/FUNCTION is now treated as DDL.
2021-03-29 16:59:34 +04:00
96475b78c5
MDEV-25457 CREATE / DROP PROCEDURE not logged with audit plugin.
...
CREATE/DROP PROCEDIRE/FUNCTION is now treated as DDL.
2021-03-27 23:07:31 +04:00
8bab5bb332
Merge 10.3 into 10.4
2021-03-05 10:36:51 +02:00
a18b39e3f4
MDEV-24965 With ALTER USER ...IDENTIFIED BY command, password doesn't replaced by asterisks in audit log.
...
Test result fixed.
2021-03-01 20:08:14 +04:00
25ecf8ed4b
MDEV-24965 With ALTER USER ...IDENTIFIED BY command, password doesn't replaced by asterisks in audit log.
...
Check for the ALTER USER command added.
2021-02-26 13:26:00 +04:00
fd5e103aa4
Merge 10.3 into 10.4
2021-01-11 10:35:06 +02:00
78292047a4
MDEV-19442 server_audit plugin doesn't consider proxy users in server_audit_excl_users/server_audit_incl_users.
...
Check the proxy user just as the connection user against the
incl_users_list and excl_users_list.
2020-12-28 15:12:32 +04:00
0aa02567dd
Merge 10.3 into 10.4
2020-12-23 14:52:59 +02:00
178d32f03b
MDEV-24318 server_audit doesn't respect filters for PROXY_CONNECT
...
events.
The log line should be added behind the filters.
2020-12-01 14:13:05 +04:00
7b2bb67113
Merge 10.3 into 10.4
2020-10-29 13:38:38 +02:00
5a9484b784
MDEV-19443 server_audit plugin doesn't log proxy users.
...
PROXY_USER event added.
Conflicts:
plugin/server_audit/server_audit.c
2020-10-23 12:28:42 +04:00
cc1646dae8
MDEV-19443 server_audit plugin doesn't log proxy users.
...
PROXY_USER event added.
2020-10-23 09:17:36 +04:00
af91266498
Merge 10.3 into 10.4
...
In main.index_merge_myisam we remove the test that was added in
commit a2d24def8c
because
it duplicates the test case that was added in
commit 5af12e4635
.
2020-04-16 12:12:26 +03:00
06219c2ad4
MDEV-21599 - plugins.server_audit fails sporadically in buildbot
...
Fixed a couple of race conditions in the test case to ensure stable order
of events. Also removed all sleeps. Test execution time is down from 18s
to 0.15s.
On disconnect audit event is triggered after control is returned to
mysqltest client. Which means mysqltest may issue more commands
concurrently before disconnect is actually logged.
Similar problem happens with regular query execution: an event is
triggered after control is returner to the client. Which may end
up with unstable order of events in different connections.
Delayed insert rows are enqueued separately and can either be combined
into single event or go as separate events. Reduced number of inserted
rows to 1 to stabilize result.
Also backported 2b3f6ab
from 10.5.
2020-04-10 19:35:53 +04:00
cb4da5da74
MDEV-20604: Duplicate key value is silently truncated to 64 characters in print_keydup_error
...
Added indication of truncated string for "s" and "M" formats
2020-04-01 11:34:32 +02:00
a15234bf4b
Merge branch '10.3' into 10.4
2019-12-09 15:09:41 +01:00
3fb0fe400c
MENT-510 Failing test(s): perfschema.threads_insert_delayed.
...
orig_test_id should be set properly.
Also fixed sporadic test failure.
2019-11-29 21:25:52 +00:00
bfa6db38cd
MENT-510 Failing test(s): perfschema.threads_insert_delayed.
...
The thread_id of the INSERT DELAYED thread should not be set to 0.
2019-11-27 09:31:47 +04:00
0e403db2c8
MENT-237 Audit to show INSERT DELAYED for the executing user.
...
Add notifications about the user and connection that actually
did the DELAYED insert.
2019-11-27 09:23:00 +04:00
7ad1e4a546
fix tests, failing after daf333abcf
2019-06-17 12:26:25 +02:00
f98bb23168
Merge 10.3 into 10.4
2019-05-29 22:17:00 +03:00
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
d3dcec5d65
Merge 10.3 into 10.4
2019-05-05 15:06:44 +03:00
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
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
4abb8216a0
MDEV-17658 change the structure of mysql.user table
...
Implement User_table_json.
Fix scripts to use mysql.global_priv.
Fix tests.
2018-12-12 00:31:44 +01:00
a76aadf7bc
MDEV-17658 change the structure of mysql.user table
...
Introduce User_table_tabular(mysql.user) and User_table_json(mysql.global_priv).
The latter is not implemented.
Automatic fallback to the old implementation works.
Results change because privilege tables are opened in a different
order now.
2018-12-12 00:31:04 +01:00
93c360e3a5
MDEV-15253: Default optimizer setting changes for MariaDB 10.4
...
use_stat_tables= PREFERABLY
optimizer_use_condition_selectivity= 4
2018-12-09 09:22:00 +05:30
82f0dc35aa
Merge 10.1 into 10.2
2018-05-11 18:33:58 +03:00
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
843e4508c0
Merge 10.1 into 10.2
2017-11-07 23:02:39 +02:00
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
4a5d25c338
Merge branch '10.1' into 10.2
2016-12-29 13:23:18 +01:00
77ce4ead81
Merge branch '5.5' into 10.0
2016-09-27 09:21:19 +02:00
d61e5260fb
MDEV-10441 Document the server_audit_loc_info variable
...
fix PLUGIN_VAR_NOSYSVAR | PLUGIN_VAR_NOCMDOPT plugin thdvars to work.
use that for server_audit_loc_info
2016-09-26 17:48:08 +02:00
932646b1ff
Merge branch '10.1' into 10.2
2016-06-30 16:38:05 +02:00
c081c978a2
Merge branch '5.5' into bb-10.0
2016-06-21 14:11:02 +02:00
c73b987e73
MDEV-8328 Evaluation of two "!" operators depends on space in beetween
...
fix the lexer to backtrack when parsing
"<=", "<>", "!=", ">=", "<<", ">>", "<=>".
2016-06-14 13:59:55 +02:00
282497dd6d
MDEV-6720 - enable connection log in mysqltest by default
2016-03-31 10:11:16 +04:00
1793646d78
Merge branch '5.5' into 10.0
...
Conflicts:
plugin/server_audit/server_audit.c
2016-01-25 16:37:08 +04:00
c9552533c9
MDEV-9106 Audit plugin compiled with MariaDB can't install on MySQL 5.7.
...
The audit API was seriously changed in MySQL 5.7.
so we had to adapt the plugin's code to that.
2016-01-12 18:43:55 +04:00
810cf362ea
Merge branch '5.5' into 10.0
2015-06-11 20:20:35 +02:00
1ae05db49c
MDEV-8078 Memory disclosure/buffer overread on audit plugin.
...
If the SET PASSWORD query doesn't have the password string,
the parsing of it can fail. It manifested first in MySQL 5.6 as
it started to hide password lines sent to the plugins.
Fixed by checking for that case.
2015-06-07 15:40:42 +05:00
db0ecf2662
MDEV-8032 [PATCH] audit plugin - csv output broken.
...
Symbols like TAB or NEWLINE should be escaped, which was
forgotten in one place.
2015-06-06 19:12:44 +05:00