Uploaded image for project: 'Percona Server for MySQL'
  1. Percona Server for MySQL
  2. PS-7977

Broken apparmor profile after 8.0.22-13 -> 8.0.23-14 upgrade

Details

    • Bug
    • Status: Open
    • Medium
    • Resolution: Fixed
    • 8.0.23-14 (Q1 2021)
    • None
    • Packaging
    • None
    • Yes

    Description

      percona-server-server package version 8.0.23-14-1.bionic installs incorrect apparmor config on upgrade. 

      The package installs 2 apparmor files: /etc/apparmor.d/usr.sbin.mysqld.in and /etc/apparmor.d/local/usr.sbin.mysqld.in. postinst code is supposed to rename them, but that code only runs on fresh install so *.in files are left untouched after upgrade.  /etc/apparmor.d/usr.sbin.mysqld.in references local/usr.sbin.mysqld which does not exist so the profile fails to load.

      The issued was introduced as part of https://jira.percona.com/browse/PS-7049 fix: https://github.com/percona/percona-server/commit/85f49bcd5209f791f3db9a2949db656ee19bc290

       

      Attachments

        Issue Links

          Activity

            People

              serhii.stasiuk Serhii Stasiuk (Inactive)
              akompel Alex Kompel
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Time Spent - 43 minutes Remaining Estimate - 43 minutes
                  43m
                  Logged:
                  Time Spent - 43 minutes Remaining Estimate - 43 minutes
                  43m

                  Smart Checklist