[MDEV-5243] MariaDB Audit Plugin 1.1.2 for MySQL not providing facility correctly Created: 2013-11-05  Updated: 2013-11-05  Resolved: 2013-11-05

Status: Closed
Project: MariaDB Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Chris Calender (Inactive) Assignee: Alexey Botchkov
Resolution: Fixed Votes: 0
Labels: audit, plugins, syslog
Environment:

Red Hat Enterprise Linux Server release 5.4 (Tikanga)


Attachments: Text File config.txt     Text File tcpdmp.txt    

 Description   

We have configured the audit plugin to write to syslog so that log forwarding can send logs from all servers to a central repository. We have noticed a problem with the way the facility & priority are being sent.

It looks like the facility is being shifted 3 to the left twice which is causing the final facility value to be out by a factor of 8.

I've included a config.txt file to show the configuration we are using. and a tcpdmp.txt file to show the tcpdump output for LOG_AUTH and LOG_USER. both are with LOG_INFO (6) as the severity

Basically, we are expecting final priority to be 14 for LOG_USER (8+6) and 38 for LOG_AUTH (32+6). But we are actually getting LOG_USER as 70 (8 * 8 +6) and LOG_AUTH as 262 (32*8+6) and this is only supposed to be an 8 bit integer.



 Comments   
Comment by Alexey Botchkov [ 2013-11-05 ]

The fixing patch:
http://lists.askmonty.org/pipermail/commits/2013-November/005644.html

Generated at Thu Feb 08 07:02:46 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.