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

Unreadable includedir stops startup, but unreadable include file is ingored

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • 10.4.7
    • 10.4
    • Configuration
    • None
    • 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

            sanja Oleksandr Byelkin
            hholzgra Hartmut Holzgraefe
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.