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

SElinux incorrect label for server socket

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 10.5.9
    • Fix Version/s: None
    • Component/s: Platform RedHat
    • Labels:
      None
    • Environment:
      CentOS Linux release 8.3.2011

      Description

      Tried couple of locations for the server's `socket` parameter

      These two end up with correct label mysqld_var_run_t
      /var/run/mysql/imthesocket.sock
      /var/run/mysqld/imalsothesocket.sock

      And these two have incorrect labels
      /var/run/mariadb/itriedtobeasocket.sock is labeled var_run_t
      /var/lib/mysql/mysql.sock is labeled as mysqld_db_t
      Both of which can be fixed by running restorecon on them which flips them back to mysqld_var_run_t

      Also might be related to older issue MDEV-10405 and 10.3.27 wasn't affected by this as it was the starting point of the upgrade to 10.5.8. Clean install is also affected.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              ospifi Jesse Sandberg
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated: