Skip to content

newport: Reload apparmor profiles before starting newport-client

Currently fails with error:

Newport-Client:ERROR:newport-client.c:290:test_newport_start_download: assertion failed (error == NULL): GDBus.Error:org.apertis.Newport.Service.Error.NotValidPath: Not A valid path to download (g-io-error-quark, 36)

and log from /var/log/audit/audit.log:

type=ANOM_ABEND msg=audit(1564138677.225:161): auid=1000 uid=1000 gid=1000 ses=2 subj==unconfined pid=1209 comm="newport-client" exe="/usr/lib/installed-tests/newport-0/newport-client" sig=6 res=1

This is due to apparmor profiles not applied to newport-client. In this case the newport-client is started with 'unconfined' label. Reloading apparmor profiles before starting newport-client fixes the test.

Fixes: APERTIS-5294

Signed-off-by: Frédéric Danis frederic.danis@collabora.com

Merge request reports