[MDEV-20245] Unreadable includedir stops startup, but unreadable include file is ingored Created: 2019-08-02  Updated: 2019-08-05

Status: Open
Project: MariaDB Server
Component/s: Configuration
Affects Version/s: 10.4.7
Fix Version/s: 10.4

Type: Bug Priority: Major
Reporter: Hartmut Holzgraefe Assignee: Oleksandr Byelkin
Resolution: Unresolved Votes: 0
Labels: None
Environment:

Ubuntu



 Description   

Standard my.cnf in our Ubuntu packages has:

!include /etc/mysql/mariadb.cnf
!includedir /etc/mysql/conf.d/

When removing read permissions from the mariadb.cnf file it is just silently ignored, there's not even a warning in the mysqld error output.

When making the conf.d directory unreadable though, by removing the r and x permissions, the server jut outright refuses to start:

mysqld: Can't read dir of '/etc/mysql/conf.d/' (Errcode: 13 "Permission denied")
Fatal error in defaults handling. Program aborted

IMHO an unreadable file should at least raise a warning, and the error handling should be consistent for both "include" and "includedir", failing in the same way if not being able to read the requested file or directory

 



 Comments   
Comment by Sergei Golubchik [ 2019-08-05 ]

it's likely not 10.4-only issue

Generated at Thu Feb 08 08:57:59 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.