[MDEV-5002] Setting server_audit_mode at runtime to 0 is allowed but has no effect Created: 2013-09-09  Updated: 2023-11-28

Status: Open
Project: MariaDB Server
Component/s: Plugin - Audit, Variables
Affects Version/s: 5.5.37, 10.0.10, 10.3, 10.4, 10.5, 10.6, 10.7, 10.8, 10.9, 10.10
Fix Version/s: 10.4, 10.5, 10.6

Type: Bug Priority: Minor
Reporter: Elena Stepanova Assignee: Alexey Botchkov
Resolution: Unresolved Votes: 0
Labels: None


 Description   

From test comments:

> - setting server_audit_mode at runtime to 0 is allowed but has no effect
i wouldn't do anything about it. That variable is not to be used by a customer anyway.

This is a strange.
If the variable is not needed at all, just remove it.
If the variable is set by the server automatically and should not be changed by a human being, make it a status variable.
If the variable is needed but as static, make it read-only.
If the variable needs to be dynamic, make it work.



 Comments   
Comment by Elena Stepanova [ 2014-04-11 ]

Addition (considering the description in https://mariadb.com/kb/en/about-the-mariadb-audit-plugin/):
...
If the variable is intended for debug, make it debug-only.

There is even an actual question from an actual user for that:
http://www.skysql.com/blogs/ralf-gebhardt/activating-auditing-mariadb-and-mysql-5-minutes (which, btw, appears in google search higher than the list of options in KB).

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