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

MariaDB fails to install on Power8 Ubuntu because of apparmor

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Cannot Reproduce
    • 10.0.16-galera, 10.0.16
    • N/A
    • Packaging
    • None

    Description

      MariaDB on Power8 Ubuntu correctly depends on the Advance Toolchain runtime but when trying to install, apparmor prevents mysqld from loading the libraries.

      I was under the impression that the /etc/apparmor.d/usr.sbin.mysqld disabled apparmor for MariaDB, and that file is in place on that host, but maybe there's something with the runtime that is interfering.

      Snippet from the syslog:

      Feb 17 16:36:44 sovmp165 mysqld_safe[31019]: /usr/sbin/mysqld: error while loading shared libraries: libpthread.so.0: cannot open shared object file: Permission denied
      Feb 17 16:36:44 sovmp165 kernel: [666470.582428] type=1400 audit(1424191004.946:183): apparmor="DENIED" operation="open" profile="/usr/sbin/mysqld" name="/opt/at8.0/lib64/power8/libpthread-2.20.so" pid=31018 comm="mysqld" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
      Feb 17 16:36:44 sovmp165 kernel: [666470.582457] type=1400 audit(1424191004.946:184): apparmor="DENIED" operation="open" profile="/usr/sbin/mysqld" name="/opt/at8.0/lib64/libpthread-2.20.so" pid=31018 comm="mysqld" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
      Feb 17 16:36:44 sovmp165 kernel: [666470.582473] type=1400 audit(1424191004.946:185): apparmor="DENIED" operation="open" profile="/usr/sbin/mysqld" name="/opt/at8.0/etc/ld.so.cache" pid=31018 comm="mysqld" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
      Feb 17 16:36:44 sovmp165 kernel: [666470.582485] type=1400 audit(1424191004.946:186): apparmor="DENIED" operation="open" profile="/usr/sbin/mysqld" name="/opt/at8.0/lib64/power8/libpthread-2.20.so" pid=31018 comm="mysqld" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
      Feb 17 16:36:44 sovmp165 kernel: [666470.582496] type=1400 audit(1424191004.946:187): apparmor="DENIED" operation="open" profile="/usr/sbin/mysqld" name="/opt/at8.0/lib64/libpthread-2.20.so" pid=31018 comm="mysqld" requested_mask="r" denied_mask="r" fsuid=0 ouid=0

      Attachments

        Activity

          People

            dbart Daniel Bartholomew
            dbart Daniel Bartholomew
            Votes:
            0 Vote for this issue
            Watchers:
            2 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.