summaryrefslogtreecommitdiff
path: root/plugin
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch '10.1' into 10.2Vicențiu Ciorbaru2020-06-112-9/+10
|\
| * MDEV-22834: Disks plugin - change datatype to bigintVicențiu Ciorbaru2020-06-102-9/+10
| | | | | | | | | | | | On large hard disks (> 2TB), the plugin won't function correctly, always showing 2 TB of available space due to integer overflow. Upgrade table fields to bigint to resolve this problem.
* | MDEV-20685: compile fixes for Solaris/OSX/AIXDaniel Black2020-04-292-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | sig_return: Solaris/OSX returns different function ptr Move defination to my_alarm.h as its the only use. prevents compile warnings (copied from 10.3 branch) mysys/my_sync.c:136:19: error: 'cur_dir_name' defined but not used [-Werror=unused-const-variable=] 136 | static const char cur_dir_name[]= {FN_CURLIB, 0}; | ^~~~~~~~~~~~ fix compile error (DEPRECATED) leaked from ssl headers. In file included from /export/home/dan/mariadb-server-10.4/sql/sys_vars.cc:37: /export/home/dan/mariadb-server-10.4/sql/sys_vars.ic:69: error: "DEPRECATED" redefined [-Werror] 69 | #define DEPRECATED(X) X | In file included from /export/home/dan/mariadb-server-10.4/include/violite.h:150, from /export/home/dan/mariadb-server-10.4/sql/sql_class.h:38, from /export/home/dan/mariadb-server-10.4/sql/sys_vars.cc:36: /usr/include/openssl/ssl.h:2356: note: this is the location of the previous definition 2356 | # define DEPRECATED __attribute__((deprecated)) | Avoid Werror condition on non-Linux: plugin/server_audit/server_audit.c:2267:7: error: variable 'db_len_off' set but not used [-Werror=unused-but-set-variable] 2267 | int db_len_off; | ^~~~~~~~~~ plugin/server_audit/server_audit.c:2266:7: error: variable 'db_off' set but not used [-Werror=unused-but-set-variable] 2266 | int db_off; | ^~~~~~ auth_gssapi fix include path for Solaris Consistent with the upstream packaged patch: https://github.com/OpenIndiana/oi-userland/blob/oi/hipster/components/database/mariadb-103/patches/06-gssapi.h.patch compile warnings on Solaris [ 91%] Building C object plugin/server_audit/CMakeFiles/server_audit.dir/server_audit.c.o /plugin/server_audit/server_audit.c: In function 'auditing_v8': /plugin/server_audit/server_audit.c:2194:20: error: unused variable 'db_len_off' [-Werror=unused-variable] 2194 | static const int db_len_off= 128; | ^~~~~~~~~~ /plugin/server_audit/server_audit.c:2193:20: error: unused variable 'db_off' [-Werror=unused-variable] 2193 | static const int db_off= 120; | ^~~~~~ /plugin/server_audit/server_audit.c:2192:20: error: unused variable 'cmd_off' [-Werror=unused-variable] 2192 | static const int cmd_off= 4432; | ^~~~~~~ At top level: /plugin/server_audit/server_audit.c:2192:20: error: 'cmd_off' defined but not used [-Werror=unused-const-variable=] /plugin/server_audit/server_audit.c:2193:20: error: 'db_off' defined but not used [-Werror=unused-const-variable=] 2193 | static const int db_off= 120; | ^~~~~~ /plugin/server_audit/server_audit.c:2194:20: error: 'db_len_off' defined but not used [-Werror=unused-const-variable=] 2194 | static const int db_len_off= 128; | ^~~~~~~~~~ cc1: all warnings being treated as errors tested on: $ uname -a SunOS openindiana 5.11 illumos-b97b1727bc i86pc i386 i86pc
* | MDEV-21913 Add pam_user_map.so file to binary tarball packageSergei Golubchik2020-04-281-2/+2
| |
* | MDEV-20604: Duplicate key value is silently truncated to 64 characters in ↵Oleksandr Byelkin2020-04-011-2/+2
| | | | | | | | | | | | print_keydup_error Added indication of truncated string for "s" and "M" formats
* | MENT-645 Undefined symbols for architecture x86_64: _pam_syslogAlexey Bychko2020-02-252-6/+38
| | | | | | | | | | | | | | added cmake checks for pam_ext.h and pam_appl.h headers added check for pam_syslog() added pam_syslog() if doesn't exist all cmake checks performed from inside the plugin
* | MDEV-17292 Package the pam_user_map moduleSergei Golubchik2020-01-212-0/+23
| |
* | MDEV-13569: wsrep_info.plugin failed in buildbot with "no nodes coming from ↵Jan Lindström2020-01-021-0/+2
| | | | | | | | | | | | | | prim view Modify configuration so that all nodes are part of galera cluster i.e. wsrep_on=ON.
* | Fixing tests according to MDEV-20655 maturity stable for user_variablesAlexander Barkov2019-09-241-1/+1
| |
* | MDEV-20655 maturity stable for user_variablesRasmus Johansson2019-09-241-1/+1
| |
* | Merge branch '10.1' into 10.2Oleksandr Byelkin2019-07-261-2/+2
|\ \ | |/
| * Merge branch '5.5' into 10.1Oleksandr Byelkin2019-07-251-2/+2
| |\
| | * Bug#27259654 - ISSUES FOUND BY PVS-STUDIO STATIC ANALYZERAnushree Prakash B2019-07-241-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | DESCRIPTION =========== PVS-Studio static code analyzer found several suspicious fragments of code across various files. i) sizeof() is using the pointer ii) memcpy() doesn't copy the whole string. iii) enumeration constant 'wkb_multilinestring' is used as a variable of a Boolean-type. iv) 'throw' keyword is missing from std::runtime_error() FIX === i) Use sizeof({actual object/data type}) ii) Use strncpy() and set last char as '\0' iii) N/A (Issue has already been fixed) iv) Add 'throw' before the exception. RB: 21502
* | | The test for the wsrep_info plugin needs the same flexible wsrep version ↵Julius Goryavsky2019-07-221-18/+3
| | | | | | | | | | | | checking as the tests for Galera (continuation of MDEV-18565 task)
* | | switch to CC 3.1Oleksandr Byelkin2019-07-201-2/+2
| | |
* | | Merge 10.1 into 10.2Eugene Kosov2019-07-091-11/+28
|\ \ \ | |/ /
| * | Make Win compiler happy about the SERVER_AUDIT code.HF2019-07-062-24/+24
| | |
| * | Make Win compiler happy.HF2019-07-051-1/+3
| | |
| * | MDEV-19851 server_audit plugin should not allow ↵Alexey Botchkov2019-07-031-1/+16
| | | | | | | | | | | | | | | | | | server_audit_output_type=SYSLOG on Windows. 'syslog' output type disabled on Windows.
* | | Merge 10.1 into 10.2Eugene Kosov2019-06-234-46/+121
|\ \ \ | |/ /
| * | MDEV-18328: Make DISKS plugin check some privilege to access ↵Oleksandr Byelkin2019-06-193-3/+47
| | | | | | | | | | | | | | | | | | information_schema.DISKS table Check FILE privelege.
| * | MDEV-18661 loading the audit plugin causes performance regression.Alexey Botchkov2019-06-151-44/+68
| | | | | | | | | | | | | | | | | | Plugin fixed to not lock the LOCK_operations when not active. Server fixed to lock the LOCK_plugin less - do it once per thread and then only if a plugin was installed/uninstalled.
* | | Merge 10.1 into 10.2Marko Mäkelä2019-06-121-1/+0
|\ \ \ | |/ /
| * | MDEV-19563 Removed references to deprecated option ↵sjaakola2019-06-121-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | innodb_locks_unsafe_for_binlog innodb_locks_unsafe_for_binlog variabe removed from wsrep_info test configuration and recommendation to use this variable in README-wsrep was removed as well Also relates to issue: MDEV-19544
* | | Fix linking error, for GNU linker.Vladislav Vaintroub2019-06-031-1/+1
| | |
* | | Only link mysys_ssl when required.Vladislav Vaintroub2019-06-031-1/+1
| | | | | | | | | | | | | | | Do not use TARGET_LINK_LIBRARIES(mysys mysys_ssl), this means that mysys_ssl is linked to practically everything.
* | | MDEV-17456 Malicious SUPER user can possibly change audit log configuration ↵Alexey Botchkov2019-05-191-6/+9
| | | | | | | | | | | | | | | | | | without leaving traces. Fix for the SET GLOBAL server_audit_loggin=on; added.
* | | Merge 10.1 into 10.2Marko Mäkelä2019-05-1366-67/+67
|\ \ \ | |/ /
| * | Merge branch '5.5' into 10.1Vicențiu Ciorbaru2019-05-1153-54/+54
| |\ \ | | |/
| | * Update FSF AddressVicențiu Ciorbaru2019-05-1137-38/+38
| | | | | | | | | | | | * Update wrong zip-code
| * | Update FSF addressVicențiu Ciorbaru2019-05-111-1/+1
| | |
| * | Merge branch '5.5' into 10.1Vicențiu Ciorbaru2019-05-1111-11/+11
| |\ \ | | |/
| | * Update FSF addressMichal Schorm2019-05-1011-11/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit is based on the work of Michal Schorm, rebased on the earliest MariaDB version. Th command line used to generate this diff was: find ./ -type f \ -exec sed -i -e 's/Foundation, Inc., 59 Temple Place, Suite 330, Boston, /Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, /g' {} \; \ -exec sed -i -e 's/Foundation, Inc. 59 Temple Place.* Suite 330, Boston, /Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, /g' {} \; \ -exec sed -i -e 's/MA.*.....-1307.*USA/MA 02110-1335 USA/g' {} \; \ -exec sed -i -e 's/Foundation, Inc., 59 Temple/Foundation, Inc., 51 Franklin/g' {} \; \ -exec sed -i -e 's/Place, Suite 330, Boston, MA.*02111-1307.*USA/Street, Fifth Floor, Boston, MA 02110-1335 USA/g' {} \; \ -exec sed -i -e 's/MA.*.....-1307/MA 02110-1335/g' {} \;
| | * MDEV-15480 Audit plugin does not respect QUERY_DML for audit plugin.Alexey Botchkov2018-05-101-4/+25
| | | | | | | | | | | | QUERY_DML_NO_SELECT flag added.
| | * MDEV-13921 Audit log writes invalid SQL if single-line comments areAlexey Botchkov2017-11-031-1/+1
| | | | | | | | | | | | | | | | | | | | | present. thread_pool_server_audit.test fixed. plugin version updated.
| | * MDEV-13921 Audit log writes invalid SQL if single-line comments areAlexey Botchkov2017-11-031-18/+21
| | | | | | | | | | | | | | | | | | | | | present. Escape special characters (like \r \n \t) instead of replacing them with spaces.
* | | Merge branch '10.1' into 10.2Oleksandr Byelkin2019-05-041-1/+9
|\ \ \ | |/ /
| * | MDEV-18686 Add option to PAM authentication plugin to allow case insensitive ↵Sergei Golubchik2019-04-241-1/+9
| | | | | | | | | | | | | | | | | | | | | username matching add a new option --pam-windbind-workaround for a pam plugin to work around pam_winbind unconditional username lowercasing
* | | Remove a type cast, and use correct format insteadMarko Mäkelä2019-04-291-2/+2
| | |
* | | Make Win compiler happy.Alexey Botchkov2019-04-291-1/+1
| | |
* | | MDEV-17456 Malicious SUPER user can possibly change audit log configuration ↵Alexey Botchkov2019-04-291-3/+4
| | | | | | | | | | | | | | | | | | | | | without leaving traces. The 'SET server_audit_logging ' statements should be logged no matter what.
* | | MDEV-19141 server_audit_excl_users accepts only values with less than 1024 ↵Alexey Botchkov2019-04-291-6/+56
| | | | | | | | | | | | | | | | | | | | | chars. Since this limit is imposed by the SHOW_VAR_FUNC_BUFF_SIZE, we just launch the error message.
* | | Merge 10.1 into 10.2Marko Mäkelä2019-04-031-1/+1
|\ \ \ | |/ /
| * | cmake: fix krb5 detection on SUSESergei Golubchik2019-04-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `zypper install krb5-devel` installs executables outside of $PATH. It also installs /etc/profile.d/krb5.sh that is sourced by a new shell to add the new location to the $PATH. But this doesn't affect the current shell. Now decent Linux distros remind the user to run `. /etc/profile` to reload paths in such a case. SUSE doesn't and for a good reason - it doesn't work there. Because SUSE sets PROFILEREAD=true in the environment and /etc/profile does not do anything. By this point, one should not really expect `unset PROFILEREAD` to help, and it does not - PROFILEREAD is readonly, and cannot be unset. Apparently SUSE really *really* wants you to re-login between installing MariaDB build dependencies and actually running the rpmbuild. Which we cannot do it buildbot. And it would look very user-un-friendly in the Build Instructions section of the manual. So, we work around it - by adding SUSE krb5 path to the search list. THIS IS SUSEEEEEE!!!
* | | Merge branch '10.1' into 10.2Sergei Golubchik2019-03-291-0/+1
|\ \ \ | |/ /
| * | MDEV-7066 No Source RPMs ... (and so no "yum-builddep MariaDB-server" either)Sergei Golubchik2019-03-271-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | special cases: * change systemd detection to use CHECK_LIBRARY_EXISTS at least once, to have it detected by build_depends.cmake * similarly, use find_library for pam * unixODBC is weird, libodbc.so is in the unixODBC package, not in the unixODBC-devel, where normally all .so files belong. Packaging bug? As a workaround, use find_file(sql.h) instead of find_path(sql.h) to make sure that /usr/include/sql.h (not /usr/include) is cached by cmake, and later build_depends.cmake will select unixODBC-devel, as a package owning /usr/include/sql.h file.
* | | Merge 10.1 into 10.2Marko Mäkelä2019-03-222-8/+9
|\ \ \ | |/ /
| * | Merge 10.0 into 10.1Marko Mäkelä2019-03-212-8/+9
| |\ \
| | * | MDEV-6262 follow-up: Ensure NUL termination on strncpy()Marko Mäkelä2019-03-212-8/+9
| | | |
| | * | MDEV-15480 Audit plugin does not respect QUERY_DML for audit plugin.Alexey Botchkov2018-05-101-4/+25
| | | | | | | | | | | | | | | | QUERY_DML_NO_SELECT flag added.