From c51b48d7f3f7642725e53114c6e3c9051e5a09a4 Mon Sep 17 00:00:00 2001
From: Martyn Welch <martyn.welch@collabora.com>
Date: Tue, 2 Apr 2019 19:31:06 +0100
Subject: [PATCH] ospack-[target,sdk]: Put the Rhosydd Apparmor profile in
 complain mode

After the rebase to Buster some AppArmor profiles have become problematic,
preventing the components from working, in this is the case Rhosydd. Put
the tool in complain mode for now.

Signed-off-by: Martyn Welch <martyn.welch@collabora.com>
---
 apertis-ospack-sdk.yaml    | 5 +++++
 apertis-ospack-target.yaml | 5 +++++
 2 files changed, 10 insertions(+)

diff --git a/apertis-ospack-sdk.yaml b/apertis-ospack-sdk.yaml
index 7f0d59c6..e792e5c6 100644
--- a/apertis-ospack-sdk.yaml
+++ b/apertis-ospack-sdk.yaml
@@ -769,6 +769,11 @@ actions:
     chroot: false
     script: scripts/apparmor-profile-switch-to-complain.sh ${ROOTDIR}/etc/apparmor.d/usr.*.ribchester*
 
+  - action: run
+    description: Switch the Rhosydd AppArmor profile to complain mode
+    chroot: false
+    script: scripts/apparmor-profile-switch-to-complain.sh ${ROOTDIR}/etc/apparmor.d/usr.bin.rhosydd
+
   - action: run
     description: Switch the Tracker AppArmor profile to complain mode
     chroot: false
diff --git a/apertis-ospack-target.yaml b/apertis-ospack-target.yaml
index 3669edbc..7bdaf0f8 100644
--- a/apertis-ospack-target.yaml
+++ b/apertis-ospack-target.yaml
@@ -294,6 +294,11 @@ actions:
     description: Switch the Newport AppArmor profile to complain mode
     chroot: false
     script: scripts/apparmor-profile-switch-to-complain.sh ${ROOTDIR}/etc/apparmor.d/usr.bin.newport
+
+  - action: run
+    description: Switch the Rhosydd AppArmor profile to complain mode
+    chroot: false
+    script: scripts/apparmor-profile-switch-to-complain.sh ${ROOTDIR}/etc/apparmor.d/usr.bin.rhosydd
   {{ end }}
 
   - action: run
-- 
GitLab