Activity log for bug #1653955

Date Who What changed Old value New value Message
2017-01-04 12:35:54 Olivier Tilloy bug added bug
2017-01-04 12:41:14 Zygmunt Krynicki tags snapd-interface
2017-01-04 12:41:21 Zygmunt Krynicki snappy: status New Confirmed
2017-01-04 13:04:38 Olivier Tilloy description (initially reported at https://lists.ubuntu.com/archives/snapcraft/2017-January/002222.html) I’m snapping an app that makes use of semaphores¹ and seeing an apparmor denial. The glibc implementation of sem_open calls SHM_GET_NAME(EINVAL,SEM_FAILED,SEM_SHM_PREFIX) where SEM_SHM_PREFIX is "sem.", so it tries to create /dev/shm/sem.{name}, which fails because snapd only allows /dev/shm/snap.@{SNAP_NAME}.**. At a quick glance, there’s no mechanism (e.g. env var) to customize the prefix ("sem."). /dev/shm/sem.* could be namespaced by snap name by allowing /dev/shm/sem.snap.@{SNAP_NAME}.* (initially reported at https://lists.ubuntu.com/archives/snapcraft/2017-January/002222.html) I’m snapping an app that makes use of semaphores¹ and seeing an apparmor denial. The glibc implementation of sem_open calls SHM_GET_NAME(EINVAL,SEM_FAILED,SEM_SHM_PREFIX) where SEM_SHM_PREFIX is "sem.", so it tries to create /dev/shm/sem.{name}, which fails because snapd only allows /dev/shm/snap.@{SNAP_NAME}.**. At a quick glance, there’s no mechanism (e.g. env var) to customize the prefix ("sem."). /dev/shm/sem.* could be namespaced by snap name by allowing /dev/shm/sem.snap.@{SNAP_NAME}.* ¹ http://manpages.ubuntu.com/manpages/xenial/en/man7/sem_overview.7.html
2017-01-05 20:25:04 Jamie Strandboge snappy: status Confirmed Triaged
2017-01-05 20:25:07 Jamie Strandboge snappy: importance Undecided Medium
2017-01-05 20:25:20 Jamie Strandboge snappy: assignee Jamie Strandboge (jdstrand)
2017-01-09 20:52:35 Jamie Strandboge snappy: status Triaged In Progress
2017-01-10 13:38:36 Jamie Strandboge snappy: status In Progress Fix Committed
2017-01-17 11:19:59 Michael Vogt snappy: status Fix Committed Fix Released