Request for 'classic' confinement for Grin

Dear Snapcraft maintainers,

I’d like to request a change of confinement for the Grin snap https://snapcraft.io/grin.

grin.wallet is a cryptocurrency wallet that leverages Tor deamon in order to send and receive transactions. So, we need the wallet to communicate with the Tor binary (installed by the user) in order for it to work correctly.

Grin is a privacy-preserving cryptocurrency. The main repo is github[.com]/mimblewimble/grin and the wallet repo lives at github[.com]/mimblewimble/grin-wallet.
The snapcraft package formula lies github[.com]/mimblewimble/packaging.

Thank you for your time.

The ability to access binaries on the host is not a sufficient use-case for classic confinement to be granted. Instead would it be possible to ship Tor within the grin snap itself?

@quentinlesceller - ping, can you please provide the requested information?

Thanks @alexmurray and @emitorino it should be definitely doable for me to ship it with Tor. I’ll investigate and release a new version.

1 Like

@quentinlesceller can you advise whether the grin snap is still requesting classic confinement? Have you had a chance to follow-up on shipping tor inside the grin snap itself to enable strict confinement?

I’m running some tests to see whether if it works or not. I’ll let you know. Thanks!

Okay managed to ship with Tor. If anyone is in the same situation, I shamelessly stole it from OnionShare snapcraft.yaml https://github.com/micahflee/onionshare/blob/develop/snap/snapcraft.yaml.
See https://github.com/mimblewimble/packaging/pull/17 for Grin. Thanks @alexmurray this is now fixed.

1 Like

@quentinlesceller excellent!