Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-20245

Unreadable includedir stops startup, but unreadable include file is ingored

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 10.4.7
    • Fix Version/s: 10.4
    • Component/s: Configuration
    • 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

       

        Attachments

          Activity

            People

            • Assignee:
              sanja Oleksandr Byelkin
              Reporter:
              hholzgra Hartmut Holzgraefe
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated: