I’m using QtsharedMemory for cross app communication. After snapping, I can’t access the shared memory, even when adding
plug. Any ideas how can I enable it?
Do you see any system denials when running your snap? what does
journalctl --no-pager | grep DENIED show?
Thanks for the hint,
my app (zview) produces only the following line:
Sep 16 00:14:23 ohm dbus-daemon: apparmor="ALLOWED" operation="dbus_method_call" bus="session" path="/org/a11y/bus" interface="org.freedesktop.DBus.Properties" member="Get" mask="send" name="org.a11y.Bus" pid=30643 label="snap.zview.zview" peer_pid=2311 peer_label="unconfined"
I do see the memory created in the ipcs, but it gets a different shmid than the one it usually gets when calling the app outside of the snap
can anyone help?
It looks like that you’re attempting to let two applications communicate via the use of /dev/shm, that won’t work as the security confinement forces snaps to have a private /dev/shm, refer Snap interface for /dev/shm for more info.