Sergei Golubchik
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
Sergei Golubchik
75891eda11
improve pam_cleartext.test a bit
2016-08-03 20:52:50 +02:00
Sergei Golubchik
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
Alexey Botchkov
ea0c3fc87b
MDEV-9438 backport feedback-http-proxy to 5.5 and 10.0.
...
The http-proxy option to the FEEDBACK plugin backported.
2016-02-09 05:19:56 +04:00
Alexey Botchkov
fe4823d28e
MDEV-9106 Audit plugin doesnt run with MySQL 5.7.
...
updata thread_pool_server_audit test result.
2016-01-13 18:02:44 +04:00
Alexey Botchkov
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
Sergei Golubchik
43a5090980
MDEV-9051 mysqld got signal 11, after upgrade to 10.1.8
...
feedback plugin needs to set tables->select_lex properly
2015-11-18 11:23:15 +01:00
Sergei Golubchik
726162989b
feedback plugin debug
...
make it possible to change feedback plugin wait intervals
* only in debug builds
* and force the feedback report to be ignored
update the test to use this feature
2015-11-18 11:23:15 +01:00
Elena Stepanova
bdcf370765
MDEV-7933 plugins.feedback_plugin_send depends on being executed after plugins.feedback_plugin_load
...
The culprit is the feedback_plugin_load test, which is run both separately
and from inside feedback_plugin_send.test. The test queries I_S.FEEDBACK,
and every time it does, 'FEEDBACK used' value is increased.
Fixed by checking that the value is increased instead of recording the actual
value in the result file.
2015-09-27 16:00:48 +03:00
Alexey Botchkov
69ed429aff
MDEV-7500 thread_handling option in my.cnf is not passing "connect events" to audit plugin.
...
The MYSQL_AUDIT_NOTIFY_CONNECTION_CONNECT() call moved to the login_connection()
function. So that it'll be invoked in any thread handling mode.
2015-06-08 12:09:13 +05:00
Alexey Botchkov
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
Alexey Botchkov
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
Alexey Botchkov
cc84ac3be4
MDEV-7596 audit plugin - record full query / document line length / make buffer configurable.
...
The serve_audit_query_log_limit variable implemented.
Also QUERY_DCL filter added.
2015-03-31 13:10:43 +05:00
Alexey Botchkov
5e20df2ff9
MDEV-7641 Server crash on set global server_audit_incl_users=null.
...
plugin_variable_update() can get NULL as a value for a string parameter.
Needs to be checked and handled properly.
2015-03-19 19:46:08 +04:00
Alexey Botchkov
919f40e464
Audit plugin v1.2.0.
2015-02-08 22:38:19 +04:00
Alexey Botchkov
142c20eda9
MDEV-4856 SQL_ERROR_LOG shows 1146 errors which didnt appear in mysql client.
...
The fill_schema_table() function used to call get_table_share() for a table name in WHERE
then clear the error list. That way plugins receive the superfluous error notification if it
happens in it. Also the problem was that error handler didn't prevent the suppressed
error message from logging anyway as the logging happens in THD::raise_condition
before the handler call.
Trigger_error_handler is remade into Warnings_only_error_handler, so it stores the error
message in all cases in the thd->stmt_da.
Then later the stored error is raised.
2014-04-15 20:41:08 +05:00
Alexey Botchkov
222e73c7a1
MariaDB Audit plugin added.
2014-02-24 23:40:16 +04:00
Alexey Botchkov
8f3e1bfc92
MDEV-5419 no audit events for warnings converted to errors in the strict mode.
...
Plugins get error notifications only when my_message_sql() is called.
But errors are launched with THD::raise_condition() calls in other
places. These are push_warning(), implementations of SIGNAL and
RESIGNAL commands.
So it makes sence to notify plugins there in THD::raise_condition().
2014-01-23 22:21:02 +04:00
Alexander Barkov
c51ed128b0
Merge from 5.3
2013-07-10 02:05:06 +04:00
Alexander Barkov
762d3cb8ed
Merge from 5.1
...
modified:
mysql-test/suite/plugins/r/fulltext_plugin.result
mysql-test/suite/plugins/t/fulltext_plugin.test
plugin/fulltext/plugin_example.c
sql/sql_show.cc
pending merges:
Sergei Golubchik 2013-07-06 Bug #69682 - mysqld crashes after uninstall ...
Sergei Golubchik 2013-05-24 MDEV-4575 MySQL client doesn't strip off...
2013-07-09 10:54:47 +04:00
Sergei Golubchik
f722b15dc2
MDEV-4636 use mysql_cleartext_plugin from auth_pam
...
add a new command-line option --pam-use-cleartext-plugin
2013-06-11 12:53:35 +02:00
Sergei Golubchik
6625fad8ca
MDEV-4564 ALTER on a temporary table generates an audit event
2013-06-07 10:02:50 +02:00
Sergei Golubchik
9bc4c4183d
MDEV-4516 SELECT from I_S.QUERY_CACHE_INFO produces ER_UNKNOWN_ERROR when query cache size is 0
...
if qc->try_lock() fails, it's not an error
2013-05-24 14:33:04 +02:00
Sergei Golubchik
b9b3d5330a
MDEV-260 auditing table accesses
2013-04-19 12:50:16 +02:00
Sergei Golubchik
102a7a2a76
MDEV-4307 Support at least 48 utf8 characters in username in server and PAM
...
Extend plugin auth api to support up to 512 bytes in the user names.
Use the API versioning to support old auth plugins too!
2013-03-26 19:17:26 +01:00
Sergei Golubchik
03d08bedf1
fixes for windows
2013-03-25 16:38:00 +01:00
Sergei Golubchik
01fd55ccae
MDEV-249 QUERY CACHE INFORMATION
2013-03-20 20:56:14 +01:00
Sergei Golubchik
4ce53556ce
Test case and a different fix for MySQL bug#14485479
2013-01-15 19:16:29 +01:00
Sergei Golubchik
53578613e9
MDEV-259 audit plugin does not see sub-statements
2012-11-08 16:49:07 +01:00
Sergei Golubchik
d473199744
MDEV-258 audit plugin only see queries if general log is enabled
2012-11-08 14:17:53 +01:00
Sergei Golubchik
06365bf841
rename plugin null_audit -> audit_null (to match status variable names)
...
create audit_null.test
2012-11-07 19:07:47 +01:00
Sergei Golubchik
68baf07dcd
5.3 merge
2012-10-18 23:33:06 +02:00
Sergei Golubchik
22c5ffde30
a simple pam user mapper module
2012-09-25 20:23:01 +02:00
Sergei Golubchik
6e827f3455
mdev-224 plugin usage statistics in the feedback reports
2012-04-18 04:00:08 +02:00
Sergei Golubchik
25609313ff
5.3.4 merge
2012-02-15 18:08:08 +01:00
Sergei Golubchik
892cd36992
make pam plugin to build in 5.5.
...
fix pam.tets for 5.5
2012-02-03 10:31:39 +01:00
Sergei Golubchik
4f435bddfd
5.3 merge
2012-01-13 15:50:02 +01:00
Sergei Golubchik
b8b7b4eb6b
plugin renamed socket_peercred -> unix_socket.
...
test added.
2011-12-30 13:57:03 +01:00
Sergei Golubchik
57c22f2a75
PAM plugin with test
2011-12-02 16:27:13 +01:00
Sergei Golubchik
d5fd757a42
1. add --plugin-dir and --default-auth to mysqltest.
...
2. dialog plugin now always returns mysql->password if non-empty and the first question is of password type
3. split get_tty_password into get_tty_password_buff and strdup.
4. dialog plugin now uses get_tty_password by default
5. dialog.test
6. moved small tests of individual plugins into a dedicated suite
2011-12-02 16:26:43 +01:00