Server IP : 104.21.38.3 / Your IP : 172.70.188.65 Web Server : Apache System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 x86_64 User : www ( 1000) PHP Version : 7.4.33 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /www/server/mysql/mysql-test/suite/audit_null/r/ |
Upload File : |
call mtr.add_suppression("Event 'MYSQL_AUDIT_GENERAL_ERROR' cannot be aborted."); # # Bug #22142209: MY_MESSAGE FAILS TO ABORT MYSQL_AUDIT_SERVER_STARTUP_CLASS EVENT # # Shutdown the server # Load the plugin at startup and abort on STARTUP with default message # Search for default abort message # Load the plugin at startup and abort on STARTUP event with custom message # Search for custom abort message # Startup the server # # Bug #22136709: INFINITE RECURSION BY CALLING MY_MESSAGE FROM # MYSQL_AUDIT_GENERAL_CLASS HANDLER INSTALL PLUGIN null_audit SONAME 'adt_null.so'; SET @@GLOBAL.null_audit_event_order_check= "MYSQL_AUDIT_GENERAL_ERROR;;ABORT_RET"; SET @@GLOBAL.null_audit_abort_message= "Abort message."; # Try to enter error state recursively 2 times. SET @@GLOBAL.null_audit_event_order_check_consume_ignore_count= 2; connect(localhost,wrong_root,,test,MASTER_PORT,MASTER_SOCKET); ERROR 28000: Access denied for user 'wrong_root'@'localhost' (using password: NO) SELECT @@null_audit_event_order_check_consume_ignore_count; @@null_audit_event_order_check_consume_ignore_count 0 # Try to enter error state infinitely. my_message calls cause stack overrun. SET @@GLOBAL.null_audit_event_order_check_consume_ignore_count= 10000; connect(localhost,wrong_root,,test,MASTER_PORT,MASTER_SOCKET); SELECT @@null_audit_event_order_check_consume_ignore_count; @@null_audit_event_order_check_consume_ignore_count 0 SET @@GLOBAL.null_audit_event_order_check= NULL; SET @@GLOBAL.null_audit_abort_message= NULL; SET @@GLOBAL.null_audit_event_order_check_consume_ignore_count= 0; # # Bug#27638290 - Set @@null_audit_event_record_def = # 'mysql_audit_authentication_flush'; crashed # # New connection, unbound thread # Expect NULL SELECT @@null_audit_event_record_def; @@null_audit_event_record_def NULL # Invalid data SET @@null_audit_event_record_def = 'ABSOLUTE_NONSENSE'; SELECT 1; 1 1 # Expect NULL SELECT @@null_audit_event_record; @@null_audit_event_record NULL SELECT @@null_audit_event_record_def; @@null_audit_event_record_def ABSOLUTE_NONSENSE # Invalid data again SET @@null_audit_event_record_def = 'MYSQL_AUDIT_AUTHENTICATION_FLUSH;JUNK'; SELECT 1; 1 1 # Expect NULL SELECT @@null_audit_event_record; @@null_audit_event_record NULL SELECT @@null_audit_event_record_def; @@null_audit_event_record_def MYSQL_AUDIT_AUTHENTICATION_FLUSH;JUNK # Valid data SET @@null_audit_event_record_def = 'MYSQL_AUDIT_GENERAL_RESULT;MYSQL_AUDIT_COMMAND_END'; SELECT 1; 1 1 SELECT @@null_audit_event_record; @@null_audit_event_record MYSQL_AUDIT_GENERAL_RESULT;; MYSQL_AUDIT_GENERAL_STATUS;; MYSQL_AUDIT_COMMAND_END;command_id="<expected_command_id>"; End of 5.7 tests # cleanup UNINSTALL PLUGIN null_audit; Warnings: Warning 1620 Plugin is busy and will be uninstalled on shutdown