[squid-dev] To make squid works in snap world.
squid3 at treenet.co.nz
Wed Mar 15 04:42:50 UTC 2017
On 15/03/2017 3:44 a.m., Gary Wang wrote:
> Hi guys
> I'm sorry that I'm here so late. :(
> Generally, regarding the purpose of this MP.
> I'd like to make squid snap works as a confined
> <https://snapcraft.io/docs/reference/confinement>snap in snap world. So
> that we can ship this snap in ubuntu-core.
> The reason why I need to add compile option to enable to customize IPC
> prefix at compiling time is that in order to use shared memory in an app
> which released as a snap package the only allowed file path will be like
> this <https://bugs.launchpad.net/snappy/+bug/1653955>(in the following
> Hence in our case, the shared memory file path should be
> Otherwise, you will get the following error when running the squid in
> snap world
Having looked at this a lot more now I think the patch is based on an
You see Squid complaining of /dev/shm Permissions error. Other people
getting that error in snap world were using semaphores and fixed it by
using snap /dev/shm/sem.* names. So you fixed the /dev/shm naming to
match snap semaphore naming.
... but Squid does *not* use semaphores.
Simply making Squid pretend to be doing semaphores to bypass the
security is not the right way forward.
The real question is why the permissions error is occuring?
What in snap world is refusing permission?
More information about the squid-dev