-
Notifications
You must be signed in to change notification settings - Fork 62
Description
Greetings, I'm having issues installing the MySQL plugin of McAfee Database Security on Debian . I've tried the two procedures indicated in the documentation receiving the following errors:
- Using the statement: INSTALL PLUGIN AUDIT SONAME 'libaudit_plugin.so':
MySQL> INSTALL PLUGIN AUDIT SONAME 'libaudit_plugin.so';
ERROR 1123 (HY000): Can't initialize function 'AUDIT'; Plugin initialization function failed.
- Adding to the MySQL option file (my.cnf) at the [mysqld] section the option: plugin-load=AUDIT=libaudit_plugin.so:
Nov 2 04:52:51 debian64 mysqld: 121102 4:52:51 [Note] Audit Plugin: Set interface version to: 12931328 (50513)
Nov 2 04:52:51 debian64 mysqld: 121102 4:52:51 [Note] Audit Plugin: starting up. Version: 1.0.0, Revision: 304. AUDIT plugin interface version: 50513. MySQL Server version: 5.5.13-2.
Nov 2 04:52:51 debian64 mysqld: 121102 4:52:51 [Note] Audit Plugin: setup_offsets offsets_string (null)
Nov 2 04:52:51 debian64 mysqld: 121102 4:52:51 [Note] Audit Plugin: Audit validate checksum enabled. Mysqld /usr/sbin/mysqld
Nov 2 04:52:51 debian64 mysqld: 121102 4:52:51 [Note] Audit Plugin: Couldn't find proper THD offsets for: 5.5.13-2
Nov 2 04:52:51 debian64 mysqld: 121102 4:52:51 [ERROR] Plugin 'AUDIT' init function returned error.
Nov 2 04:52:51 debian64 mysqld: 121102 4:52:51 [Note] Audit Plugin: removing hot patching function: 0xf5adf9c0
Nov 2 04:52:51 debian64 mysqld: 121102 4:52:51 [Note] Audit Plugin: targetPage: 0xf5adf000 targetFunction: 0xf5adf9c0
Nov 2 04:52:51 debian64 mysqld: 121102 4:52:51 [Note] Audit Plugin: removing hot patching function: 0xf5aa3ef0
Nov 2 04:52:51 debian64 mysqld: 121102 4:52:51 [Note] Audit Plugin: targetPage: 0xf5aa3000 targetFunction: 0xf5aa3ef0
Nov 2 04:52:51 debian64 mysqld: 121102 4:52:51 [Note] Audit Plugin: removing hot patching function: 0xf5ab2080
Nov 2 04:52:51 debian64 mysqld: 121102 4:52:51 [Note] Audit Plugin: targetPage: 0xf5ab2000 targetFunction: 0xf5ab2080
Nov 2 04:52:51 debian64 mysqld: 121102 4:52:51 [Note] Audit Plugin: removing hot patching function: 0xf5ab5610
Nov 2 04:52:51 debian64 mysqld: 121102 4:52:51 [Note] Audit Plugin: targetPage: 0xf5ab5000 targetFunction: 0xf5ab5610
Nov 2 04:52:51 debian64 mysqld: 121102 4:52:51 [Note] Audit Plugin: removing hot patching function: 0xf5ae0cb0
Nov 2 04:52:51 debian64 mysqld: 121102 4:52:51 [Note] Audit Plugin: targetPage: 0xf5ae0000 targetFunction: 0xf5ae0cb0
Nov 2 04:52:51 debian64 mysqld: 121102 4:52:51 [Note] Audit Plugin: removing hot patching function: 0xf5ae50e0
Nov 2 04:52:51 debian64 mysqld: 121102 4:52:51 [Note] Audit Plugin: targetPage: 0xf5ae5000 targetFunction: 0xf5ae50e0
The problem probably is that the OFFSET parameters should be indicated but we don't know them and we were unable to run the ./offset-extract.sh /usr/sbin/mysqld to find them. It trows the next error:
root@Debian64:/etc/mysql# ./offset-extract.sh /usr/sbin/mysqld
set logging on
printf "{"5.5.28-1","2eaab403212b52f78a22835c79d15175", %d, %d, %d, %d, %d, %d}", ((size_t)&((THD )log_slow_statement)->query_id) - (size_t)log_slow_statement, ((size_t)&((THD *)log_slow_statement)->thread_id) - (size_t)log_slow_statement, ((size_t)&((THD *)log_slow_statement)->main_security_ctx) - (size_t)log_slow_statement, ((size_t)&((THD *)log_slow_statement)->command) - (size_t)log_slow_statement, ((size_t)&((THD *)log_slow_statement)->lex) - (size_t)log_slow_statement, (size_t)&((LEX)log_slow_statement)->comment - (size_t) log_slow_statement
//offsets for: /usr/sbin/mysqld (5.5.28-1)
/etc/mysql/offsets.gdb:2: Error in sourced command file:
No symbol table is loaded. Use the "file" command.,
Using the parameter audit_validate_checksum=OFF doesn't fx the problem either.
We've tried with different versions of MySQL Server 5.5.28-1~dotdeb.0. and MySql 5.1
Please help us, what can we try now? Any information should be useful, thanks in advance,