diff --git a/compiling.txt b/compiling.txt index 62db17b..37eae77 100644 --- a/compiling.txt +++ b/compiling.txt @@ -96,5 +96,5 @@ http://dev.mysql.com/doc/refman/5.1/en/source-configuration-options.html 10. cd ../.. 11. chmod +x bootstrap.sh 12. ./bootstrap.sh -13. CXX='gcc -static-libgcc' CC='gcc -static-libgcc' MYSQL_AUDIT_PLUGIN_VERSION=1.1.7 MYSQL_AUDIT_PLUGIN_REVISION=`svn info|grep ^Revision|awk -F ": " '{print $2}'` ./configure --enable-debug=no --with-mysql=mariadb-10.2.10 --with-mysql-libservices=mariadb-10.2.10/libservices/libmysqlservices.a +13. CXX='gcc -static-libgcc' CC='gcc -static-libgcc' MYSQL_AUDIT_PLUGIN_VERSION=1.1.9 MYSQL_AUDIT_PLUGIN_REVISION=`svn info|grep ^Revision|awk -F ": " '{print $2}'` ./configure --enable-debug=no --with-mysql=mariadb-10.2.10 --with-mysql-libservices=mariadb-10.2.10/libservices/libmysqlservices.a 14. gmake <======== This will create the plugin "libaudit_plugin.so" diff --git a/include/audit_handler.h b/include/audit_handler.h index 4f3b0cd..658ebd9 100644 --- a/include/audit_handler.h +++ b/include/audit_handler.h @@ -255,7 +255,7 @@ class Audit_formatter { #if !defined(MARIADB_BASE_VERSION) && MYSQL_VERSION_ID < 50709 return thd->db; #elif defined(MARIADB_BASE_VERSION) -#if MYSQL_VERSION_ID >= 100504 +#if MYSQL_VERSION_ID >= 100307 return thd->db.str; #else return thd->db; @@ -578,7 +578,7 @@ static inline const CHARSET_INFO * pfs_connect_attrs_cs(const void * pfs) // and it may return an invalid value for view_db static inline const char *table_get_db_name(TABLE_LIST *table) { -#if defined(MARIADB_BASE_VERSION) && MYSQL_VERSION_ID >= 100504 +#if defined(MARIADB_BASE_VERSION) && MYSQL_VERSION_ID >= 100307 return table->db.str; #else return table->db; @@ -587,7 +587,7 @@ static inline const CHARSET_INFO * pfs_connect_attrs_cs(const void * pfs) static inline const char *table_get_name(TABLE_LIST *table) { -#if defined(MARIADB_BASE_VERSION) && MYSQL_VERSION_ID >= 100504 +#if defined(MARIADB_BASE_VERSION) && MYSQL_VERSION_ID >= 100307 return table->table_name.str; #else return table->table_name; diff --git a/include/mysql_inc.h b/include/mysql_inc.h index 510304a..106111f 100644 --- a/include/mysql_inc.h +++ b/include/mysql_inc.h @@ -31,8 +31,8 @@ #include #endif -#if defined(MARIADB_BASE_VERSION) && MYSQL_VERSION_ID >= 100504 -// From MariaDB 10.5 we include macro definitions for items like MY_GNUC_PREREQ +#if defined(MARIADB_BASE_VERSION) && MYSQL_VERSION_ID >= 100307 +// From MariaDB 10.3 we include macro definitions for items like MY_GNUC_PREREQ #include #include #endif diff --git a/offset-extract/offset-extract.sh b/offset-extract/offset-extract.sh index f9fc945..847ffdb 100644 --- a/offset-extract/offset-extract.sh +++ b/offset-extract/offset-extract.sh @@ -59,7 +59,7 @@ fi # In 5.6.15 and up, 5.7 and mariabdb 10.0.11 and up, mariadb 10.1 # m_session_connect_attrs_cs changed to m_session_connect_attrs_cs_number -if echo $MYVER | grep -P '^(5\.7|8\.|10\.[1-2]|5\.6\.(1[5-9]|[2-9][0-9])|10.0.(1[1-9]|[2-9][0-9]))' > /dev/null +if echo $MYVER | grep -P '^(5\.7|8\.|10\.[1-5]|5\.6\.(1[5-9]|[2-9][0-9])|10.0.(1[1-9]|[2-9][0-9]))' > /dev/null then CONNECT_ATTRS_CS=m_session_connect_attrs_cs_number fi @@ -111,9 +111,9 @@ else fi # Exit status info 5.5, 5.6, 5.7 -DA_STATUS="print_offset Diagnostics_area m_status" # 5.5, 5.6, 5.7, mariadb 10.0, 10.1, 10.2 -DA_SQL_ERRNO="print_offset Diagnostics_area m_sql_errno" # 5.5, 5.6, mariadb 10.0, 10.1, 10.2 -STMT_DA="print_offset THD m_stmt_da" # 5.6, 5.7, mariadb 10.0, 10.1, 10.2 +DA_STATUS="print_offset Diagnostics_area m_status" # 5.5, 5.6, 5.7, mariadb 10.0 to 10.5 +DA_SQL_ERRNO="print_offset Diagnostics_area m_sql_errno" # 5.5, 5.6, mariadb 10.0 to 10.5 +STMT_DA="print_offset THD m_stmt_da" # 5.6, 5.7, mariadb 10.0 to 10.5 if echo $MYVER | grep -P '^(5\.7|8\.0)' > /dev/null then diff --git a/src/audit_offsets.cc b/src/audit_offsets.cc index 42f99d7..1abce6e 100644 --- a/src/audit_offsets.cc +++ b/src/audit_offsets.cc @@ -25,6 +25,8 @@ const ThdOffsets thd_offsets_arr[] = { /* +++ PERCONA 64 OFFSETS GO HERE +++ */ + //offsets for: /perconarpm/usr/sbin/mysqld (5.7.34-37) + {"5.7.34-37","c043928340fcb2d5669e99bd7fa7ec2c", 8368, 8432, 3936, 5096, 456, 360, 0, 32, 64, 160, 544, 8564, 4664, 3648, 3656, 3660, 6568, 2088, 8, 7600, 7640, 7624, 14336, 148, 672, 0}, //offsets for: /perconarpm/usr/sbin/mysqld (5.7.33-36) {"5.7.33-36","732e230fdc4153d8dd2aa0acaf715c6e", 8360, 8424, 3928, 5088, 456, 360, 0, 32, 64, 160, 536, 8556, 4656, 3648, 3656, 3660, 6560, 2088, 8, 7592, 7632, 7616, 14328, 148, 672}, //offsets for: /perconarpm/usr/sbin/mysqld (5.7.32-35) @@ -69,6 +71,12 @@ const ThdOffsets thd_offsets_arr[] = const ThdOffsets thd_offsets_arr[] = { /* +++ MYSQL 64 OFFSETS GO HERE +++ */ + //offsets for: /mysqlrpm/8.0.25/usr/sbin/mysqld (8.0.25) + {"8.0.25","b39d5a2dc25755666192578d4c20a7d6", 8544, 8584, 4064, 5536, 520, 0, 0, 32, 64, 160, 608, 8700, 5168, 4208, 4216, 4220, 6840, 1656, 32, 7800, 7840, 7824, 11624, 140, 664, 320}, + //offsets for: /mysqlrpm/8.0.24/usr/sbin/mysqld (8.0.24) + {"8.0.24","9fb73bdd61549fe4959f559f2048f599", 8544, 8584, 4064, 5536, 520, 0, 0, 32, 64, 160, 608, 8700, 5168, 4208, 4216, 4220, 6840, 1656, 32, 7800, 7840, 7824, 11624, 140, 664, 320}, + //offsets for: /mysqlrpm/5.7.34/usr/sbin/mysqld (5.7.34) + {"5.7.34","3178b639c1612f96ec6a1f66909a9099", 7832, 7880, 3640, 4800, 456, 360, 0, 32, 64, 160, 544, 7996, 4368, 3648, 3656, 3660, 6080, 2072, 8, 7064, 7104, 7088, 13480, 148, 672, 0}, //offsets for: /mysqlrpm/5.6.51/usr/sbin/mysqld (5.6.51) {"5.6.51","536e5cb3ca8ccf249ea2da764c1e19f8", 7000, 7048, 4008, 4528, 72, 2704, 96, 0, 32, 104, 136, 7136, 4400, 2800, 2808, 2812, 536, 0, 0, 6368, 6392, 6376, 13056, 548, 516}, //offsets for: /mysqlrpm/5.7.33/usr/sbin/mysqld (5.7.33) @@ -420,45 +428,130 @@ const ThdOffsets thd_offsets_arr[] = const ThdOffsets thd_offsets_arr[] = { /* +++ MARIADB 64 OFFSETS GO HERE +++ */ - + //offsets for: /mariadb/10.2.39/bin/mysqld (10.2.39-MariaDB) + {"10.2.39-MariaDB","49a2582f3704582afa9f29ca65d4e148", 13880, 13944, 6672, 8288, 88, 3224, 8, 0, 16, 24, 152, 14044, 8048, 2984, 2992, 2996, 608, 0, 0, 13256, 13280, 13264, 21232, 548, 516, 0}, + //offsets for: /mariadb/10.2.38/bin/mysqld (10.2.38-MariaDB) + {"10.2.38-MariaDB","5c251d90decd75a6a6b07075ffa985b7", 13880, 13944, 6672, 8288, 88, 3208, 8, 0, 16, 24, 152, 14044, 8048, 2984, 2992, 2996, 608, 0, 0, 13256, 13280, 13264, 21216, 548, 516, 0}, + //offsets for: /mariadbrpm/10.5.11/usr/sbin/mysqld (10.5.11-MariaDB) + {"10.5.11-MariaDB","fb61b72238c3203f6c6d263482eda650", 15240, 15400, 7728, 9496, 88, 3552, 8, 0, 16, 24, 152, 15508, 9128, 5480, 5488, 5492, 640, 0, 0, 14496, 14520, 14504, 24088, 564, 8, 0}, + //offsets for: /mariadbrpm/10.5.10/usr/sbin/mysqld (10.5.10-MariaDB) + {"10.5.10-MariaDB","336e22b5e2298b95c17810aac572f6d7", 15240, 15400, 7728, 9496, 88, 3536, 8, 0, 16, 24, 152, 15508, 9128, 5480, 5488, 5492, 640, 0, 0, 14496, 14520, 14504, 24072, 564, 8, 0}, + //offsets for: /mariadb/10.5.11/bin/mysqld (10.5.11-MariaDB) + {"10.5.11-MariaDB","9fcf9063b5ff4b342c7e7c8ddcc6689b", 15240, 15400, 7728, 9496, 88, 3552, 8, 0, 16, 24, 152, 15508, 9128, 5480, 5488, 5492, 640, 0, 0, 14496, 14520, 14504, 24088, 564, 8, 0}, + //offsets for: /mariadb/10.5.10/bin/mysqld (10.5.10-MariaDB) + {"10.5.10-MariaDB","28c2b9c99c4169b594030bfd5b745ed8", 15240, 15400, 7728, 9496, 88, 3536, 8, 0, 16, 24, 152, 15508, 9128, 5480, 5488, 5492, 640, 0, 0, 14496, 14520, 14504, 24072, 564, 8, 0}, + //offsets for: /mariadbrpm/10.4.20/usr/sbin/mysqld (10.4.20-MariaDB) + {"10.4.20-MariaDB","89ba50314220259f7e92f6b98d82967c", 14640, 14792, 7296, 9032, 88, 3536, 8, 0, 16, 24, 152, 14892, 8688, 2984, 2992, 2996, 640, 0, 0, 14016, 14040, 14024, 23424, 564, 8, 0}, + //offsets for: /mariadbrpm/10.4.19/usr/sbin/mysqld (10.4.19-MariaDB) + {"10.4.19-MariaDB","3528acc6b9e0a9f48a6173126b0dc3de", 14640, 14792, 7296, 9032, 88, 3520, 8, 0, 16, 24, 152, 14892, 8688, 2984, 2992, 2996, 640, 0, 0, 14016, 14040, 14024, 23408, 564, 8, 0}, + //offsets for: /mariadb/10.4.20/bin/mysqld (10.4.20-MariaDB) + {"10.4.20-MariaDB","6f5933c750a5aedba02321b20eb0e81c", 14640, 14792, 7296, 9032, 88, 3536, 8, 0, 16, 24, 152, 14892, 8688, 2984, 2992, 2996, 640, 0, 0, 14016, 14040, 14024, 23424, 564, 8, 0}, + //offsets for: /mariadb/10.4.19/bin/mysqld (10.4.19-MariaDB) + {"10.4.19-MariaDB","8444bbfe79d0f423d6f03ab101e1c19d", 14640, 14792, 7296, 9032, 88, 3520, 8, 0, 16, 24, 152, 14892, 8688, 2984, 2992, 2996, 640, 0, 0, 14016, 14040, 14024, 23408, 564, 8, 0}, //offsets for: /mariadbrpm/10.5.9/usr/sbin/mysqld (10.5.9-MariaDB) - {"10.5.9-MariaDB","725ac4b90ca420f615bd71956edad7a6", 15224, 15384, 7712, 9480, 88, 3504, 8, 0, 16, 24, 152, 15492, 9112, 5480, 5488, 5492, 632, 0, 0, 14480, 14504, 14488, 24024, 564, 8}, + {"10.5.9-MariaDB","725ac4b90ca420f615bd71956edad7a6", 15224, 15384, 7712, 9480, 88, 3504, 8, 0, 16, 24, 152, 15492, 9112, 5480, 5488, 5492, 632, 0, 0, 14480, 14504, 14488, 24024, 564, 8, 0}, //offsets for: /mariadb/10.5.9/bin/mysqld (10.5.9-MariaDB) - {"10.5.9-MariaDB","a6abda02a6438f3254829a007ef31a8d", 15224, 15384, 7712, 9480, 88, 3504, 8, 0, 16, 24, 152, 15492, 9112, 5480, 5488, 5492, 632, 0, 0, 14480, 14504, 14488, 24024, 564, 8}, + {"10.5.9-MariaDB","a6abda02a6438f3254829a007ef31a8d", 15224, 15384, 7712, 9480, 88, 3504, 8, 0, 16, 24, 152, 15492, 9112, 5480, 5488, 5492, 632, 0, 0, 14480, 14504, 14488, 24024, 564, 8, 0}, //offsets for: /mariadb/10.5.9/bin/mysqld (10.5.9-MariaDB) systemd - {"10.5.9-MariaDB","43c43dfad7fc3e3b7a26a59c2bff1fa8", 15224, 15384, 7712, 9480, 88, 3504, 8, 0, 16, 24, 152, 15492, 9112, 5480, 5488, 5492, 632, 0, 0, 14480, 14504, 14488, 24024, 564, 8}, + {"10.5.9-MariaDB","43c43dfad7fc3e3b7a26a59c2bff1fa8", 15224, 15384, 7712, 9480, 88, 3504, 8, 0, 16, 24, 152, 15492, 9112, 5480, 5488, 5492, 632, 0, 0, 14480, 14504, 14488, 24024, 564, 8, 0}, //offsets for: /mariadb/10.2.37/bin/mysqld (10.2.37-MariaDB) {"10.2.37-MariaDB","2ae941e007e26f2f4a6108e359b6ee97", 13880, 13944, 6672, 8288, 88, 3208, 8, 0, 16, 24, 152, 14044, 8048, 2984, 2992, 2996, 608, 0, 0, 13256, 13280, 13264, 21216, 548, 516}, //offsets for: /mariadbrpm/10.5.8/usr/sbin/mysqld (10.5.8-MariaDB) - {"10.5.8-MariaDB","6a40182f423179b5e55752c72834c25d", 15216, 15376, 7704, 9472, 88, 3504, 8, 0, 16, 24, 152, 15484, 9104, 5480, 5488, 5492, 632, 0, 0, 14472, 14496, 14480, 24016, 564, 8}, + {"10.5.8-MariaDB","6a40182f423179b5e55752c72834c25d", 15216, 15376, 7704, 9472, 88, 3504, 8, 0, 16, 24, 152, 15484, 9104, 5480, 5488, 5492, 632, 0, 0, 14472, 14496, 14480, 24016, 564, 8, 0}, //offsets for: /mariadbrpm/10.5.7/usr/sbin/mysqld (10.5.7-MariaDB) - {"10.5.7-MariaDB","9d929cd4fea6dc6f3b13588ac41559b2", 15216, 15376, 7704, 9472, 88, 3504, 8, 0, 16, 24, 152, 15484, 9104, 5480, 5488, 5492, 632, 0, 0, 14472, 14496, 14480, 24016, 564, 8}, + {"10.5.7-MariaDB","9d929cd4fea6dc6f3b13588ac41559b2", 15216, 15376, 7704, 9472, 88, 3504, 8, 0, 16, 24, 152, 15484, 9104, 5480, 5488, 5492, 632, 0, 0, 14472, 14496, 14480, 24016, 564, 8, 0}, //offsets for: /mariadbrpm/10.5.6/usr/sbin/mysqld (10.5.6-MariaDB) - {"10.5.6-MariaDB","2047d965f6f9dbb9d69508a88ab6f5b3", 14824, 14984, 7312, 9080, 88, 3512, 8, 0, 16, 24, 152, 15092, 8712, 5480, 5488, 5492, 624, 0, 0, 14080, 14104, 14088, 23632, 564, 8}, + {"10.5.6-MariaDB","2047d965f6f9dbb9d69508a88ab6f5b3", 14824, 14984, 7312, 9080, 88, 3512, 8, 0, 16, 24, 152, 15092, 8712, 5480, 5488, 5492, 624, 0, 0, 14080, 14104, 14088, 23632, 564, 8, 0}, //offsets for: /mariadbrpm/10.5.5/usr/sbin/mysqld (10.5.5-MariaDB) - {"10.5.5-MariaDB","39d53533a39ff2fe11c1c5ed6773cd11", 14824, 14984, 7312, 9080, 88, 3512, 8, 0, 16, 24, 152, 15092, 8712, 5480, 5488, 5492, 624, 0, 0, 14080, 14104, 14088, 23632, 564, 8}, + {"10.5.5-MariaDB","39d53533a39ff2fe11c1c5ed6773cd11", 14824, 14984, 7312, 9080, 88, 3512, 8, 0, 16, 24, 152, 15092, 8712, 5480, 5488, 5492, 624, 0, 0, 14080, 14104, 14088, 23632, 564, 8, 0}, //offsets for: /mariadbrpm/10.5.4/usr/sbin/mysqld (10.5.4-MariaDB) - {"10.5.4-MariaDB","3654c448ff5318de5870040cbf5c5b10", 14824, 14984, 7312, 9080, 88, 3512, 8, 0, 16, 24, 152, 15092, 8712, 5480, 5488, 5492, 624, 0, 0, 14080, 14104, 14088, 23632, 564, 8}, + {"10.5.4-MariaDB","3654c448ff5318de5870040cbf5c5b10", 14824, 14984, 7312, 9080, 88, 3512, 8, 0, 16, 24, 152, 15092, 8712, 5480, 5488, 5492, 624, 0, 0, 14080, 14104, 14088, 23632, 564, 8, 0}, //offsets for: /mariadb/10.5.8/bin/mysqld (10.5.8-MariaDB) systemd - {"10.5.8-MariaDB","a62479253a14b7a1ffd3bf75b3c98604", 15216, 15376, 7704, 9472, 88, 3504, 8, 0, 16, 24, 152, 15484, 9104, 5480, 5488, 5492, 632, 0, 0, 14472, 14496, 14480, 24016, 564, 8}, + {"10.5.8-MariaDB","a62479253a14b7a1ffd3bf75b3c98604", 15216, 15376, 7704, 9472, 88, 3504, 8, 0, 16, 24, 152, 15484, 9104, 5480, 5488, 5492, 632, 0, 0, 14472, 14496, 14480, 24016, 564, 8, 0}, //offsets for: /mariadb/10.5.7/bin/mysqld (10.5.7-MariaDB) systemd - {"10.5.7-MariaDB","8c6bfb8ef6c4c3107975f0071db319f2", 15216, 15376, 7704, 9472, 88, 3504, 8, 0, 16, 24, 152, 15484, 9104, 5480, 5488, 5492, 632, 0, 0, 14472, 14496, 14480, 24016, 564, 8}, + {"10.5.7-MariaDB","8c6bfb8ef6c4c3107975f0071db319f2", 15216, 15376, 7704, 9472, 88, 3504, 8, 0, 16, 24, 152, 15484, 9104, 5480, 5488, 5492, 632, 0, 0, 14472, 14496, 14480, 24016, 564, 8, 0}, //offsets for: /mariadb/10.5.6/bin/mysqld (10.5.6-MariaDB) systemd - {"10.5.6-MariaDB","bace784d1ab7b882165972803dd66677", 14824, 14984, 7312, 9080, 88, 3512, 8, 0, 16, 24, 152, 15092, 8712, 5480, 5488, 5492, 624, 0, 0, 14080, 14104, 14088, 23632, 564, 8}, + {"10.5.6-MariaDB","bace784d1ab7b882165972803dd66677", 14824, 14984, 7312, 9080, 88, 3512, 8, 0, 16, 24, 152, 15092, 8712, 5480, 5488, 5492, 624, 0, 0, 14080, 14104, 14088, 23632, 564, 8, 0}, //offsets for: /mariadb/10.5.5/bin/mysqld (10.5.5-MariaDB) systemd - {"10.5.5-MariaDB","8723bb0beff85d99d4966a556eeb8571", 14824, 14984, 7312, 9080, 88, 3512, 8, 0, 16, 24, 152, 15092, 8712, 5480, 5488, 5492, 624, 0, 0, 14080, 14104, 14088, 23632, 564, 8}, + {"10.5.5-MariaDB","8723bb0beff85d99d4966a556eeb8571", 14824, 14984, 7312, 9080, 88, 3512, 8, 0, 16, 24, 152, 15092, 8712, 5480, 5488, 5492, 624, 0, 0, 14080, 14104, 14088, 23632, 564, 8, 0}, //offsets for: /mariadb/10.5.4/bin/mysqld (10.5.4-MariaDB) systemd - {"10.5.4-MariaDB","706ce2652d5b6dd69c1e425b934e20f3", 14824, 14984, 7312, 9080, 88, 3512, 8, 0, 16, 24, 152, 15092, 8712, 5480, 5488, 5492, 624, 0, 0, 14080, 14104, 14088, 23632, 564, 8}, + {"10.5.4-MariaDB","706ce2652d5b6dd69c1e425b934e20f3", 14824, 14984, 7312, 9080, 88, 3512, 8, 0, 16, 24, 152, 15092, 8712, 5480, 5488, 5492, 624, 0, 0, 14080, 14104, 14088, 23632, 564, 8, 0}, //offsets for: /mariadb/10.5.8/bin/mysqld (10.5.8-MariaDB) - {"10.5.8-MariaDB","8daa247e5af6c32c49f1acfc6dbc5070", 15216, 15376, 7704, 9472, 88, 3504, 8, 0, 16, 24, 152, 15484, 9104, 5480, 5488, 5492, 632, 0, 0, 14472, 14496, 14480, 24016, 564, 8}, + {"10.5.8-MariaDB","8daa247e5af6c32c49f1acfc6dbc5070", 15216, 15376, 7704, 9472, 88, 3504, 8, 0, 16, 24, 152, 15484, 9104, 5480, 5488, 5492, 632, 0, 0, 14472, 14496, 14480, 24016, 564, 8, 0}, //offsets for: /mariadb/10.5.7/bin/mysqld (10.5.7-MariaDB) - {"10.5.7-MariaDB","3d992f183a7faa381d9dd2a73b296f61", 15216, 15376, 7704, 9472, 88, 3504, 8, 0, 16, 24, 152, 15484, 9104, 5480, 5488, 5492, 632, 0, 0, 14472, 14496, 14480, 24016, 564, 8}, + {"10.5.7-MariaDB","3d992f183a7faa381d9dd2a73b296f61", 15216, 15376, 7704, 9472, 88, 3504, 8, 0, 16, 24, 152, 15484, 9104, 5480, 5488, 5492, 632, 0, 0, 14472, 14496, 14480, 24016, 564, 8, 0}, //offsets for: /mariadb/10.5.6/bin/mysqld (10.5.6-MariaDB) - {"10.5.6-MariaDB","c2b3f23934cd4cb421a7e26ce68731bf", 14824, 14984, 7312, 9080, 88, 3512, 8, 0, 16, 24, 152, 15092, 8712, 5480, 5488, 5492, 624, 0, 0, 14080, 14104, 14088, 23632, 564, 8}, + {"10.5.6-MariaDB","c2b3f23934cd4cb421a7e26ce68731bf", 14824, 14984, 7312, 9080, 88, 3512, 8, 0, 16, 24, 152, 15092, 8712, 5480, 5488, 5492, 624, 0, 0, 14080, 14104, 14088, 23632, 564, 8, 0}, //offsets for: /mariadb/10.5.5/bin/mysqld (10.5.5-MariaDB) - {"10.5.5-MariaDB","ede1dfe21489d98ef9c5b663b381fe8e", 14824, 14984, 7312, 9080, 88, 3512, 8, 0, 16, 24, 152, 15092, 8712, 5480, 5488, 5492, 624, 0, 0, 14080, 14104, 14088, 23632, 564, 8}, + {"10.5.5-MariaDB","ede1dfe21489d98ef9c5b663b381fe8e", 14824, 14984, 7312, 9080, 88, 3512, 8, 0, 16, 24, 152, 15092, 8712, 5480, 5488, 5492, 624, 0, 0, 14080, 14104, 14088, 23632, 564, 8, 0}, //offsets for: /mariadb/10.5.4/bin/mysqld (10.5.4-MariaDB) - {"10.5.4-MariaDB","631e6eb51c07e3d20d41769b7f64c994", 14824, 14984, 7312, 9080, 88, 3512, 8, 0, 16, 24, 152, 15092, 8712, 5480, 5488, 5492, 624, 0, 0, 14080, 14104, 14088, 23632, 564, 8}, + {"10.5.4-MariaDB","631e6eb51c07e3d20d41769b7f64c994", 14824, 14984, 7312, 9080, 88, 3512, 8, 0, 16, 24, 152, 15092, 8712, 5480, 5488, 5492, 624, 0, 0, 14080, 14104, 14088, 23632, 564, 8, 0}, + //offsets for: /mariadbrpm/10.4.18/usr/sbin/mysqld (10.4.18-MariaDB) + {"10.4.18-MariaDB","64df46550846ea55c0bb89c964d119ca", 14624, 14776, 7280, 9016, 88, 3488, 8, 0, 16, 24, 152, 14876, 8672, 2984, 2992, 2996, 632, 0, 0, 14000, 14024, 14008, 23360, 564, 8, 0}, + //offsets for: /mariadbrpm/10.4.17/usr/sbin/mysqld (10.4.17-MariaDB) + {"10.4.17-MariaDB","0b0edcb2dbf2fd44a54c5ddf97ae5bdc", 14624, 14776, 7280, 9016, 88, 3488, 8, 0, 16, 24, 152, 14876, 8672, 2984, 2992, 2996, 632, 0, 0, 14000, 14024, 14008, 23360, 564, 8, 0}, + //offsets for: /mariadbrpm/10.4.16/usr/sbin/mysqld (10.4.16-MariaDB) + {"10.4.16-MariaDB","03f72f8afa35dcd16e7f9a69e7c25fba", 14624, 14776, 7280, 9016, 88, 3488, 8, 0, 16, 24, 152, 14876, 8672, 2984, 2992, 2996, 632, 0, 0, 14000, 14024, 14008, 23360, 564, 8, 0}, + //offsets for: /mariadbrpm/10.4.15/usr/sbin/mysqld (10.4.15-MariaDB) + {"10.4.15-MariaDB","2473ba16d3838dff2283dba25bcce89e", 14616, 14768, 7272, 9008, 88, 3488, 8, 0, 16, 24, 152, 14868, 8664, 2984, 2992, 2996, 624, 0, 0, 13992, 14016, 14000, 23352, 564, 8, 0}, + //offsets for: /mariadbrpm/10.4.14/usr/sbin/mysqld (10.4.14-MariaDB) + {"10.4.14-MariaDB","306c78e2912c1b747ae8996d39e75322", 14616, 14768, 7272, 9008, 88, 3488, 8, 0, 16, 24, 152, 14868, 8664, 2984, 2992, 2996, 624, 0, 0, 13992, 14016, 14000, 23352, 564, 8, 0}, + //offsets for: /mariadbrpm/10.4.13/usr/sbin/mysqld (10.4.13-MariaDB) + {"10.4.13-MariaDB","b77a65a53afb4b61ff43bd8e004a78f6", 14616, 14768, 7272, 9008, 88, 3488, 8, 0, 16, 24, 152, 14868, 8664, 2984, 2992, 2996, 624, 0, 0, 13992, 14016, 14000, 23352, 564, 8, 0}, + //offsets for: /mariadbrpm/10.4.12/usr/sbin/mysqld (10.4.12-MariaDB) + {"10.4.12-MariaDB","16d85928262fd8d9e426d6e6b8ca6ca1", 14616, 14768, 7272, 9008, 88, 3488, 8, 0, 16, 24, 152, 14868, 8664, 2984, 2992, 2996, 624, 0, 0, 13992, 14016, 14000, 23352, 564, 8, 0}, + //offsets for: /mariadbrpm/10.4.11/usr/sbin/mysqld (10.4.11-MariaDB) + {"10.4.11-MariaDB","cebccb1fdaf26ffde3d2aa2c7f6735ae", 14616, 14768, 7272, 9008, 88, 3496, 8, 0, 16, 24, 152, 14868, 8664, 2984, 2992, 2996, 624, 0, 0, 13992, 14016, 14000, 23360, 564, 8, 0}, + //offsets for: /mariadbrpm/10.4.10/usr/sbin/mysqld (10.4.10-MariaDB) + {"10.4.10-MariaDB","eb3b50a9d5e8247ec4852c0f9139a9e4", 14616, 14768, 7272, 9008, 88, 3480, 8, 0, 16, 24, 152, 14868, 8664, 2984, 2992, 2996, 624, 0, 0, 13992, 14016, 14000, 23328, 564, 8, 0}, + //offsets for: /mariadbrpm/10.4.8/usr/sbin/mysqld (10.4.8-MariaDB) + {"10.4.8-MariaDB","967163e897ddf59a58797b645036a801", 14616, 14768, 7272, 9008, 88, 3480, 8, 0, 16, 24, 152, 14868, 8664, 2984, 2992, 2996, 624, 0, 0, 13992, 14016, 14000, 23320, 564, 8, 0}, + //offsets for: /mariadbrpm/10.4.7/usr/sbin/mysqld (10.4.7-MariaDB) + {"10.4.7-MariaDB","9397f9126de6e7377d2e29e4a0a7ebe8", 14616, 14768, 7272, 9008, 88, 3480, 8, 0, 16, 24, 152, 14868, 8664, 2984, 2992, 2996, 624, 0, 0, 13992, 14016, 14000, 23320, 564, 8, 0}, + //offsets for: /mariadbrpm/10.4.6/usr/sbin/mysqld (10.4.6-MariaDB) + {"10.4.6-MariaDB","f20440e4f263df7186c4c91fd691fb73", 14616, 14768, 7272, 9008, 88, 3472, 8, 0, 16, 24, 152, 14868, 8664, 2984, 2992, 2996, 624, 0, 0, 13992, 14016, 14000, 23304, 564, 8, 0}, + //offsets for: /mariadb/10.4.18/bin/mysqld (10.4.18-MariaDB) systemd + {"10.4.18-MariaDB","ad6e29c1198bb876264d0f9c0748149c", 14624, 14776, 7280, 9016, 88, 3488, 8, 0, 16, 24, 152, 14876, 8672, 2984, 2992, 2996, 632, 0, 0, 14000, 14024, 14008, 23360, 564, 8, 0}, + //offsets for: /mariadb/10.4.17/bin/mysqld (10.4.17-MariaDB) systemd + {"10.4.17-MariaDB","d4559bf63cf1e20814a15ac8bf177bf6", 14624, 14776, 7280, 9016, 88, 3488, 8, 0, 16, 24, 152, 14876, 8672, 2984, 2992, 2996, 632, 0, 0, 14000, 14024, 14008, 23360, 564, 8, 0}, + //offsets for: /mariadb/10.4.16/bin/mysqld (10.4.16-MariaDB) systemd + {"10.4.16-MariaDB","950124d3089a955eff9434c944a7ca18", 14624, 14776, 7280, 9016, 88, 3488, 8, 0, 16, 24, 152, 14876, 8672, 2984, 2992, 2996, 632, 0, 0, 14000, 14024, 14008, 23360, 564, 8, 0}, + //offsets for: /mariadb/10.4.15/bin/mysqld (10.4.15-MariaDB) systemd + {"10.4.15-MariaDB","ddf06b8c881f10d691e32a41195659d2", 14616, 14768, 7272, 9008, 88, 3488, 8, 0, 16, 24, 152, 14868, 8664, 2984, 2992, 2996, 624, 0, 0, 13992, 14016, 14000, 23352, 564, 8, 0}, + //offsets for: /mariadb/10.4.14/bin/mysqld (10.4.14-MariaDB) systemd + {"10.4.14-MariaDB","17ea17b04234a1aedced242c4403e921", 14616, 14768, 7272, 9008, 88, 3488, 8, 0, 16, 24, 152, 14868, 8664, 2984, 2992, 2996, 624, 0, 0, 13992, 14016, 14000, 23352, 564, 8, 0}, + //offsets for: /mariadb/10.4.13/bin/mysqld (10.4.13-MariaDB) systemd + {"10.4.13-MariaDB","d2789ca38098d19eb6c624f88b66efc5", 14616, 14768, 7272, 9008, 88, 3488, 8, 0, 16, 24, 152, 14868, 8664, 2984, 2992, 2996, 624, 0, 0, 13992, 14016, 14000, 23352, 564, 8, 0}, + //offsets for: /mariadb/10.4.12/bin/mysqld (10.4.12-MariaDB) systemd + {"10.4.12-MariaDB","159f3aa33ad9d4653eed9cb9e4470dcf", 14616, 14768, 7272, 9008, 88, 3488, 8, 0, 16, 24, 152, 14868, 8664, 2984, 2992, 2996, 624, 0, 0, 13992, 14016, 14000, 23352, 564, 8, 0}, + //offsets for: /mariadb/10.4.11/bin/mysqld (10.4.11-MariaDB) systemd + {"10.4.11-MariaDB","346e46fb6e53ee03f722ef9b28b21ac6", 14616, 14768, 7272, 9008, 88, 3496, 8, 0, 16, 24, 152, 14868, 8664, 2984, 2992, 2996, 624, 0, 0, 13992, 14016, 14000, 23360, 564, 8, 0}, + //offsets for: /mariadb/10.4.10/bin/mysqld (10.4.10-MariaDB) systemd + {"10.4.10-MariaDB","7635e2cffd76649167989bfddc1b9f93", 14616, 14768, 7272, 9008, 88, 3480, 8, 0, 16, 24, 152, 14868, 8664, 2984, 2992, 2996, 624, 0, 0, 13992, 14016, 14000, 23328, 564, 8, 0}, + //offsets for: /mariadb/10.4.8/bin/mysqld (10.4.8-MariaDB) systemd + {"10.4.8-MariaDB","a55b1558227a9f3c91c279fb8045efb8", 14616, 14768, 7272, 9008, 88, 3480, 8, 0, 16, 24, 152, 14868, 8664, 2984, 2992, 2996, 624, 0, 0, 13992, 14016, 14000, 23320, 564, 8, 0}, + //offsets for: /mariadb/10.4.7/bin/mysqld (10.4.7-MariaDB) systemd + {"10.4.7-MariaDB","e321670955bc21af9758ba1e40c66376", 14616, 14768, 7272, 9008, 88, 3480, 8, 0, 16, 24, 152, 14868, 8664, 2984, 2992, 2996, 624, 0, 0, 13992, 14016, 14000, 23320, 564, 8, 0}, + //offsets for: /mariadb/10.4.6/bin/mysqld (10.4.6-MariaDB) systemd + {"10.4.6-MariaDB","75c314f8d390ce9fe2d38e7015dac51c", 14616, 14768, 7272, 9008, 88, 3472, 8, 0, 16, 24, 152, 14868, 8664, 2984, 2992, 2996, 624, 0, 0, 13992, 14016, 14000, 23304, 564, 8, 0}, + //offsets for: /mariadb/10.4.18/bin/mysqld (10.4.18-MariaDB) + {"10.4.18-MariaDB","8611ef2eb3ce71c1dbdfa639ca19d14b", 14624, 14776, 7280, 9016, 88, 3488, 8, 0, 16, 24, 152, 14876, 8672, 2984, 2992, 2996, 632, 0, 0, 14000, 14024, 14008, 23360, 564, 8, 0}, + //offsets for: /mariadb/10.4.17/bin/mysqld (10.4.17-MariaDB) + {"10.4.17-MariaDB","77eb9fef30cb182d9f31498d0038f612", 14624, 14776, 7280, 9016, 88, 3488, 8, 0, 16, 24, 152, 14876, 8672, 2984, 2992, 2996, 632, 0, 0, 14000, 14024, 14008, 23360, 564, 8, 0}, + //offsets for: /mariadb/10.4.16/bin/mysqld (10.4.16-MariaDB) + {"10.4.16-MariaDB","337b85ebe7521547dddab7092570fec8", 14624, 14776, 7280, 9016, 88, 3488, 8, 0, 16, 24, 152, 14876, 8672, 2984, 2992, 2996, 632, 0, 0, 14000, 14024, 14008, 23360, 564, 8, 0}, + //offsets for: /mariadb/10.4.15/bin/mysqld (10.4.15-MariaDB) + {"10.4.15-MariaDB","5a33657f5f8a9aba62a60ae4f8407485", 14616, 14768, 7272, 9008, 88, 3488, 8, 0, 16, 24, 152, 14868, 8664, 2984, 2992, 2996, 624, 0, 0, 13992, 14016, 14000, 23352, 564, 8, 0}, + //offsets for: /mariadb/10.4.14/bin/mysqld (10.4.14-MariaDB) + {"10.4.14-MariaDB","9ff2780b500f0c18851b29989192fd3b", 14616, 14768, 7272, 9008, 88, 3488, 8, 0, 16, 24, 152, 14868, 8664, 2984, 2992, 2996, 624, 0, 0, 13992, 14016, 14000, 23352, 564, 8, 0}, + //offsets for: /mariadb/10.4.13/bin/mysqld (10.4.13-MariaDB) + {"10.4.13-MariaDB","ea1efab78e4a95991796dfc23a76c7c1", 14616, 14768, 7272, 9008, 88, 3488, 8, 0, 16, 24, 152, 14868, 8664, 2984, 2992, 2996, 624, 0, 0, 13992, 14016, 14000, 23352, 564, 8, 0}, + //offsets for: /mariadb/10.4.12/bin/mysqld (10.4.12-MariaDB) + {"10.4.12-MariaDB","dba6d562a5bab49389672915985af73e", 14616, 14768, 7272, 9008, 88, 3488, 8, 0, 16, 24, 152, 14868, 8664, 2984, 2992, 2996, 624, 0, 0, 13992, 14016, 14000, 23352, 564, 8, 0}, + //offsets for: /mariadb/10.4.11/bin/mysqld (10.4.11-MariaDB) + {"10.4.11-MariaDB","c7a8c449da685c3fd44122c5feb74d5c", 14616, 14768, 7272, 9008, 88, 3496, 8, 0, 16, 24, 152, 14868, 8664, 2984, 2992, 2996, 624, 0, 0, 13992, 14016, 14000, 23360, 564, 8, 0}, + //offsets for: /mariadb/10.4.10/bin/mysqld (10.4.10-MariaDB) + {"10.4.10-MariaDB","2e9f5e8f5b272dd6b06b79fe411aa6d1", 14616, 14768, 7272, 9008, 88, 3480, 8, 0, 16, 24, 152, 14868, 8664, 2984, 2992, 2996, 624, 0, 0, 13992, 14016, 14000, 23328, 564, 8, 0}, //offsets for: /mariadb/10.2.36/bin/mysqld (10.2.36-MariaDB) {"10.2.36-MariaDB","6ac5d544938762b31b4972d099c85933", 13880, 13944, 6672, 8288, 88, 3208, 8, 0, 16, 24, 152, 14044, 8048, 2984, 2992, 2996, 608, 0, 0, 13256, 13280, 13264, 21216, 548, 516}, //offsets for: /mariadb/10.2.35/bin/mysqld (10.2.35-MariaDB) @@ -796,6 +889,12 @@ const ThdOffsets thd_offsets_arr[] = const ThdOffsets thd_offsets_arr[] = { /* +++ MYSQL 32 OFFSETS GO HERE +++ */ + //offsets for: /mysqlrpm/8.0.25/usr/sbin/mysqld (8.0.25) + {"8.0.25","25ee4d67323c6eb45e7f01cee4a28ed2", 5680, 5704, 2496, 3640, 328, 0, 0, 20, 40, 100, 376, 5788, 3428, 3652, 3656, 3660, 4336, 940, 16, 5136, 5172, 5156, 8136, 72, 596, 172}, + //offsets for: /mysqlrpm/8.0.24/usr/sbin/mysqld (8.0.24) + {"8.0.24","95db964c04cd7c01839b5009cca63674", 5680, 5704, 2496, 3640, 328, 0, 0, 20, 40, 100, 376, 5788, 3428, 3652, 3656, 3660, 4336, 940, 16, 5136, 5172, 5156, 8136, 72, 596, 172}, + //offsets for: /mysqlrpm/5.7.34/usr/sbin/mysqld (5.7.34) + {"5.7.34","12a89d95687d6fb261dfec2451a1bb5b", 5088, 5116, 2216, 3040, 296, 200, 0, 20, 40, 100, 344, 5204, 2780, 3108, 3112, 3116, 3724, 1152, 4, 4540, 4576, 4560, 9052, 80, 604, 0}, //offsets for: /mysqlrpm/5.6.51/usr/sbin/mysqld (5.6.51) {"5.6.51","92b12b9c5531241950c85984b2a9f689", 4680, 4708, 2664, 3056, 36, 1748, 60, 0, 20, 64, 72, 4780, 2984, 2268, 2272, 2276, 348, 0, 0, 4208, 4232, 4216, 8664, 548, 516}, //offsets for: /mysqlrpm/5.7.33/usr/sbin/mysqld (5.7.33) @@ -1117,6 +1216,10 @@ const ThdOffsets thd_offsets_arr[] = const ThdOffsets thd_offsets_arr[] = { /* +++ MARIADB 32 OFFSETS GO HERE +++ */ + //offsets for: /mariadb/10.2.39/bin/mysqld (10.2.39-MariaDB) + {"10.2.39-MariaDB","3f4aa4d7056f5a7bbac1cdbd9a8bccee", 8612, 8648, 3960, 5428, 44, 2044, 4, 0, 8, 12, 84, 8732, 5288, 2604, 2608, 2612, 376, 0, 0, 8136, 8160, 8144, 13476, 548, 516, 0}, + //offsets for: /mariadb/10.2.38/bin/mysqld (10.2.38-MariaDB) + {"10.2.38-MariaDB","277222917404c0cc7ce14d874e023135", 8612, 8648, 3960, 5428, 44, 2032, 4, 0, 8, 12, 84, 8732, 5288, 2604, 2608, 2612, 376, 0, 0, 8136, 8160, 8144, 13464, 548, 516, 0}, //offsets for: /mariadb/10.2.37/bin/mysqld (10.2.37-MariaDB) {"10.2.37-MariaDB","f09c2b85d1f8989f71c7bebbc4b6088c", 8612, 8648, 3960, 5428, 44, 2032, 4, 0, 8, 12, 84, 8732, 5288, 2604, 2608, 2612, 376, 0, 0, 8136, 8160, 8144, 13464, 548, 516}, //offsets for: /mariadb/10.2.36/bin/mysqld (10.2.36-MariaDB) diff --git a/src/audit_plugin.cc b/src/audit_plugin.cc index c5dafe9..72a9b56 100644 --- a/src/audit_plugin.cc +++ b/src/audit_plugin.cc @@ -1175,6 +1175,7 @@ static bool parse_thd_offsets_string (char *poffsets_string) if ((size_t)pOffset- (size_t)&Audit_formatter::thd_offsets < sizeof (Audit_formatter::thd_offsets)) { sql_print_error("%s Failed parsing audit_offsets: not all offsets specified. This may happen if you used an old version of offset-extract.sh script.", log_prefix); + sql_print_error("%s Got %zu quantity of offsets, but expected more", log_prefix, i); return false; } return true; @@ -1371,7 +1372,7 @@ static int setup_offsets() if (parse_thd_offsets_string(offsets_string)) { - sql_print_information ("%s setup_offsets Audit_formatter::thd_offsets values: %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu", log_prefix, + sql_print_information ("%s setup_offsets Audit_formatter::thd_offsets values: %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu", log_prefix, Audit_formatter::thd_offsets.query_id, Audit_formatter::thd_offsets.thread_id, Audit_formatter::thd_offsets.main_security_ctx, @@ -1396,7 +1397,8 @@ static int setup_offsets() Audit_formatter::thd_offsets.row_count_func, Audit_formatter::thd_offsets.stmt_da, Audit_formatter::thd_offsets.da_status, - Audit_formatter::thd_offsets.da_sql_errno + Audit_formatter::thd_offsets.da_sql_errno, + Audit_formatter::thd_offsets.view_tables ); if (! validate_offsets(&Audit_formatter::thd_offsets)) @@ -1527,7 +1529,7 @@ static int setup_offsets() if (validate_offsets(&decoffsets)) { Audit_formatter::thd_offsets = decoffsets; - sql_print_information("%s Using decrement (%zu) offsets from offset version: %s (%s) values: %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu", + sql_print_information("%s Using decrement (%zu) offsets from offset version: %s (%s) values: %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu", log_prefix, dec, offset->version, offset->md5digest, Audit_formatter::thd_offsets.query_id, Audit_formatter::thd_offsets.thread_id, @@ -1539,6 +1541,7 @@ static int setup_offsets() Audit_formatter::thd_offsets.sec_ctx_host, Audit_formatter::thd_offsets.sec_ctx_ip, Audit_formatter::thd_offsets.sec_ctx_priv_user, + Audit_formatter::thd_offsets.db, Audit_formatter::thd_offsets.killed, Audit_formatter::thd_offsets.client_capabilities, Audit_formatter::thd_offsets.pfs_connect_attrs, @@ -1552,7 +1555,8 @@ static int setup_offsets() Audit_formatter::thd_offsets.row_count_func, Audit_formatter::thd_offsets.stmt_da, Audit_formatter::thd_offsets.da_status, - Audit_formatter::thd_offsets.da_sql_errno + Audit_formatter::thd_offsets.da_sql_errno, + Audit_formatter::thd_offsets.view_tables ); DBUG_RETURN(0); @@ -1570,7 +1574,7 @@ static int setup_offsets() if (validate_offsets(&incoffsets)) { Audit_formatter::thd_offsets = incoffsets; - sql_print_information("%s Using increment (%zu) offsets from offset version: %s (%s) values: %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu", + sql_print_information("%s Using increment (%zu) offsets from offset version: %s (%s) values: %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu", log_prefix, inc, offset->version, offset->md5digest, Audit_formatter::thd_offsets.query_id, Audit_formatter::thd_offsets.thread_id, @@ -1582,6 +1586,7 @@ static int setup_offsets() Audit_formatter::thd_offsets.sec_ctx_host, Audit_formatter::thd_offsets.sec_ctx_ip, Audit_formatter::thd_offsets.sec_ctx_priv_user, + Audit_formatter::thd_offsets.db, Audit_formatter::thd_offsets.killed, Audit_formatter::thd_offsets.client_capabilities, Audit_formatter::thd_offsets.pfs_connect_attrs, @@ -1595,7 +1600,8 @@ static int setup_offsets() Audit_formatter::thd_offsets.row_count_func, Audit_formatter::thd_offsets.stmt_da, Audit_formatter::thd_offsets.da_status, - Audit_formatter::thd_offsets.da_sql_errno + Audit_formatter::thd_offsets.da_sql_errno, + Audit_formatter::thd_offsets.view_tables ); DBUG_RETURN(0); } @@ -2585,7 +2591,7 @@ mysql_declare_plugin(audit_plugin) } mysql_declare_plugin_end; -#if defined(MARIADB_BASE_VERSION) && MYSQL_VERSION_ID >= 100504 +#if defined(MARIADB_BASE_VERSION) && MYSQL_VERSION_ID >= 100307 maria_declare_plugin(audit_plugin) { plugin_type, /* the plugin type (see include/mysql/plugin.h) */