0

I would like to allow a snap application to read and write files to /home/user/somedir and restrict the user's ability to read and write files in home/user/otherdir. The application cannot be repackaged, so the solution must come from snap itself or some workaround.

It seems fairly obvious that currently it is technically unfeasible to do this for arbitrary filesystem directories like /arbitrary/directory/tree without workarounds not involving snap.

I understand that there are general workarounds, for example running the snap as a dummy user or in a container and using bind-mount to provide access to only /home/user/somedir.

Have I missed a simpler solution in this case?

It seems to me that the technical limitations noted above may not apply, as we need to take away filesystem access provided by :home rather than provide them.

0 Answers0