Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
a099284b
Commit
a099284b
authored
Jul 03, 2019
by
Alexey Botchkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-19851 server_audit plugin should not allow server_audit_output_type=SYSLOG on Windows.
'syslog' output type disabled on Windows.
parent
bf37b9fc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletion
+16
-1
plugin/server_audit/server_audit.c
plugin/server_audit/server_audit.c
+16
-1
No files found.
plugin/server_audit/server_audit.c
View file @
a099284b
...
...
@@ -26,6 +26,7 @@
#include <fcntl.h>
#ifndef _WIN32
#define DO_SYSLOG
#include <syslog.h>
#else
#define syslog(PRIORITY, FORMAT, INFO, MESSAGE_LEN, MESSAGE) do {}while(0)
...
...
@@ -384,17 +385,31 @@ static MYSQL_SYSVAR_SET(events, events, PLUGIN_VAR_RQCMDARG,
"Specifies the set of events to monitor. Can be CONNECT, QUERY, TABLE,"
" QUERY_DDL, QUERY_DML, QUERY_DML_NO_SELECT, QUERY_DCL."
,
NULL
,
NULL
,
0
,
&
events_typelib
);
#ifdef DO_SYSLOG
#define OUTPUT_SYSLOG 0
#define OUTPUT_FILE 1
#else
#define OUTPUT_SYSLOG 0xFFFF
#define OUTPUT_FILE 0
#endif
/*DO_SYSLOG*/
#define OUTPUT_NO 0xFFFF
static
const
char
*
output_type_names
[]
=
{
"syslog"
,
"file"
,
0
};
static
const
char
*
output_type_names
[]
=
{
#ifdef DO_SYSLOG
"syslog"
,
#endif
"file"
,
0
};
static
TYPELIB
output_typelib
=
{
array_elements
(
output_type_names
)
-
1
,
"output_typelib"
,
output_type_names
,
NULL
};
static
MYSQL_SYSVAR_ENUM
(
output_type
,
output_type
,
PLUGIN_VAR_RQCMDARG
,
#ifdef DO_SYSLOG
"Desired output type. Possible values - 'syslog', 'file'"
#else
"Desired output type. Possible values - 'file'"
#endif
" or 'null' as no output."
,
0
,
update_output_type
,
OUTPUT_FILE
,
&
output_typelib
);
static
MYSQL_SYSVAR_STR
(
file_path
,
file_path
,
PLUGIN_VAR_RQCMDARG
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment