Shared memory interface gets link operation denided
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
I am trying to use the shared-memory feature of FastDDS within a snap (creating shared-memory files in /dev/shm). The idea is to be able to share shared-memory across snaps.
I declared my slot like this:
slots:
shmem-slot:
interface: shared-memory
write: [fastrtps_*, sem.fastrtps_*]
private: false
It allows FastDDS to create fastrtps_* files, but fails for sem.fastrtps_* files with this AppArmor log:
= AppArmor =
Log: apparmor="DENIED" operation="link" profile=
File: /dev/shm/
After modifying /var/lib/
Adding the link operation to shared-memory would allow FastDDS and ROS2 users to benefit from the shared-memory transport.
Changed in snapd: | |
status: | New → Fix Committed |
Changed in snapd: | |
status: | Fix Committed → Fix Released |
I have just submitted https:/ /github. com/snapcore/ snapd/pull/ 11812 which should resolve this once it is merged.