Address capability apparmor denial in a snapcraft yaml file

Here is the denial, AVC apparmor=“DENIED” operation=“capable” profile="" pid=5602 comm="" capability=17 capname=“sys_rawio”**

How do I address the above denial in a snapcraft yaml file?

Install the snappy-debug snap and run the contained snappy-debug command in a second terminal while you run your app… that might give you suggestions how to address the issue…