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

Selinux denial on mktemp in mysqld_safe script

Details

    Description

      The bug that was mentionned in: MDEV-13950 is back.

      The mysqld_safe script uses the mktemp command without the -t option once again, and recovery fails as it gets blocked by SeLinux.

      # grep -n mktemp /usr/bin/mysqld_safe
      229:  local wr_logfile=$(mktemp /tmp/wsrep_recovery.XXXXXX)
      

      I know I can patch the file, but we manage several of these systems with puppet and it becomes problematic to do so in bulk. I may temporarily create a puppet managed selinux policy that would allow the action, as a stopgap measure.

      Here is a list of installed packages as well as their version numbers:

      # rpm -qa | grep -i mariadb
      MariaDB-compat-10.3.22-1.el7.centos.x86_64
      MariaDB-common-10.3.22-1.el7.centos.x86_64
      MariaDB-devel-10.3.22-1.el7.centos.x86_64
      MariaDB-backup-10.3.22-1.el7.centos.x86_64
      MariaDB-client-10.3.22-1.el7.centos.x86_64
      MariaDB-server-10.3.22-1.el7.centos.x86_64
      

      Thanks!

      Attachments

        Activity

          xlashmar Is this a real issue still or can I just close this as a not a bug ?

          jplindst Jan Lindström (Inactive) added a comment - xlashmar Is this a real issue still or can I just close this as a not a bug ?

          Hi Jan,

          I will double check and let you know.

          Xavier

          xlashmar Xavier Lashmar added a comment - Hi Jan, I will double check and let you know. Xavier

          Hi Jan,

          I believe you are right this may not be a bug and I may have mis-identified this parameter when filing this report. Feel free to close it and thank you for checking.

          Xavier

          xlashmar Xavier Lashmar added a comment - Hi Jan, I believe you are right this may not be a bug and I may have mis-identified this parameter when filing this report. Feel free to close it and thank you for checking. Xavier

          People

            jplindst Jan Lindström (Inactive)
            xlashmar Xavier Lashmar
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

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