Snap Core Slot for blkid

I’m running a snap that requires the command blkid to extract a uuid. I have the permission for this snap’s plug to connect to the core:block-devices but apparmor keeps denying me access. I also see that I can list the uuid files in /dev/disk/by-uuid.

For this particular case it is preferable to run blkid. Am I missing or connected to the wrong slot?

It’s has always been a bit of a challenge to identify the proper snap slot to connect to whenever I have these permission errors. Are there any suggestions?

Hi,

By looking at the interfaces defined in snapd, I couldn’t see any interfaces that define access to /dev/disk. But, maybe I just missed that and you could always check it by using snappy-debug snap.

In Desktop, please install,
snap install snappy-debug

Before running your application run the following command in another terminal;
sudo journalctl --output=short --follow --all | sudo snappy-debug

snappy-debug would suggest you an interface if there is.

Can you paste the exact apparmor denial that you see?