]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Revert "action: Remove apparmor disable logic"
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 8 Jul 2024 12:19:42 +0000 (14:19 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 8 Jul 2024 12:20:01 +0000 (14:20 +0200)
Turns out this hasn't been shipped in the default image yet.

This reverts commit 90cb8d54a0c65f46f0c7462be74a4135576edddf.

action.yaml

index 0197b0db953bd266f93c5d8fff7725dcd81992c1..267e199db675d197854d615faec7c13423505e6b 100644 (file)
@@ -38,6 +38,17 @@ runs:
         sudo sysctl --ignore --write kernel.apparmor_restrict_unprivileged_unconfined=0
         sudo sysctl --ignore --write kernel.apparmor_restrict_unprivileged_userns=0
 
+  # Both the unix-chkpwd and swtpm profiles are broken (https://gitlab.com/apparmor/apparmor/-/issues/402) so let's
+  # just disable and remove apparmor completely. It's not relevant in this context anyway.
+  # TODO: Remove if https://github.com/actions/runner-images/issues/10015 is ever fixed.
+  - name: Disable and mask apparmor service
+    shell: bash
+    run: |
+        # This command fails with a non-zero error code even though it unloads the apparmor profiles.
+        # https://gitlab.com/apparmor/apparmor/-/issues/403
+        sudo aa-teardown || true
+        sudo apt-get remove apparmor
+
   - name: Dependencies
     shell: bash
     run: |