Allow sharing files with OnionShare from external storage media
Steps to reproduce :
1. plug in a USB stick with a file on it
2. right click on the said file and “Share via Onionshare”
3. Onionshare opens, click on “Start sharing”
4. after a few seconds the popup is dislayed with “Permission denied”
To fix this, we should extend the AppArmor profile
(config/chroot_local-includes/etc/apparmor.d/abstractions/onionshare
)
to allow reading files owned by the amnesia
user, from external
storage media (/media/amnesia/*
).