From 3770a6b1996d5d67b947671739ae3ca20015c079 Mon Sep 17 00:00:00 2001
From: Martyn Welch <martyn.welch@collabora.com>
Date: Wed, 3 Apr 2019 10:55:51 +0100
Subject: [PATCH] ospack-sdk: Put the Newport AppArmor profile in complain mode

After the rebase to Buster, some AppArmor profiles have become
problematic and prevent the components from working: this is the case for
Newport, which currently fails to start.

This was tweaked for the minimal and target images, but missed for the SDK
in commit 3938bda1.

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

diff --git a/apertis-ospack-sdk.yaml b/apertis-ospack-sdk.yaml
index 7155da62..c0f4fc2c 100644
--- a/apertis-ospack-sdk.yaml
+++ b/apertis-ospack-sdk.yaml
@@ -748,6 +748,11 @@ actions:
     chroot: false
     script: scripts/apparmor-profile-switch-to-complain.sh ${ROOTDIR}/etc/apparmor.d/usr.*.ribchester*
 
+  - action: run
+    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
-- 
GitLab