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

wsrep-new-cluster and wsrep-start-position in wrong directory with wrong selinux permissions

    XMLWordPrintable

Details

    • Bug
    • Status: In Review (View Workflow)
    • Minor
    • Resolution: Unresolved
    • 11.8.2, 11.8.3, 12.0.0, 12.0.1, 12.0.2, 12.1.1
    • 11.8
    • Configuration, Galera, Packaging
    • None
    • rpm

    Description

      After moving the systemd service to using environment files instead of `systemctl set-environment` in 11.6 (MDEV-19210), they (wsrep-new-cluster and wsrep-start-position) are located in /var/lib/mysql along with the socket file in Fedora/RHEL-based distros. This causes them to have incorrect selinux permissions and therefore be not readable by systemd.

      A solution is to generate these files in the run directory, instead, which already has correct permissions. Dissociating these files and the socket in CMake configs can also prove useful for other things.

      Another alternative is to move the socket file, too. I confirmed that this way the package builds fine and all the tests pass. Unfortunately, reverse dependencies may not respond so well to this.

      Attachments

        Issue Links

          Activity

            People

              danblack Daniel Black
              pkhartsk Petr Khartskhaev
              Votes:
              0 Vote for this issue
              Watchers:
              2 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.