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

LP:876550 - apparmor blocks starting of mariadb in ubuntu ocelot (11.10)

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Resolution: Fixed
    • None
    • None
    • None

    Description

      Apparently in Ubuntu 11.10 /var/run has been moved to /run. This causes apparmor to prevent mariadb from running.

      See the following related bug reports:
      https://bugs.launchpad.net/ubuntu/+source/mysql-5.1/+bug/810580
      https://bugs.launchpad.net/ubuntu/+source/apparmor/+bug/810270

      To fix it manually, in the file:
      /etc/apparmor.d/usr.sbin.mysql
      I changed the lines:
      /var/run/mysqld/mysqld.pid w,
      /var/run/mysqld/mysqld.sock w,
      to:
      /

      {,var/}run/mysqld/mysqld.pid w,
      /{,var/}

      run/mysqld/mysqld.sock w,

      I think that this needs to be fixed on mariadb's end and that this is what was done for the mysql package. In any case, it works and matches the changes made for other profiles under /etc/apparmor.d

      Attachments

        Activity

          People

            Unassigned Unassigned
            carlleitner Carl Leitner (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 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.