[MDEV-30993] unix_socket plugin can NOT disable in [mariadb-10.x] Created: 2023-04-04  Updated: 2023-05-02  Resolved: 2023-05-02

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

Type: Bug Priority: Minor
Reporter: Shawn Yan Assignee: Unassigned
Resolution: Incomplete Votes: 0
Labels: None


 Description   

as we know, unix_socket plugin is installed from mariadb 10.4 by default, but this plugin has weakness point in security, so I'd like to disable it when DB start.

but, when I turn it off in my.cnf like this, it doesn't work,

[mariadb-10.4]
unix_socket=OFF

and log show that:

2023-04-04  9:44:48 0 [Note] InnoDB: Loading buffer pool(s) from /data/db/ib_buffer_pool
2023-04-04  9:44:48 0 [Note] Plugin 'FEEDBACK' is disabled.
230404  9:44:48 server_audit: MariaDB Audit Plugin version 1.4.13 STARTED.

so when I disable plugin in section [mariadb], it works.

[mariadb]
unix_socket=OFF

and log show that:

2023-04-04  9:38:16 0 [Note] InnoDB: Loading buffer pool(s) from /data/db/ib_buffer_pool
2023-04-04  9:38:16 0 [Note] Plugin 'FEEDBACK' is disabled.
2023-04-04  9:38:16 0 [Note] Plugin 'unix_socket' is disabled.
230404  9:38:16 server_audit: MariaDB Audit Plugin version 1.4.13 STARTED.



 Comments   
Comment by Sergei Golubchik [ 2023-04-04 ]

I've put

[mariadb-10.4]
unix_socket=OFF

in my.cnf and 10.4 was started without unix_socket plugin. You must be doing something more, if the above didn't work for you.

Generated at Thu Feb 08 10:20:28 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.