Gocryptfs: [help] How would you embed gocryptfs into a go application ?

Created on 27 Feb 2019  Â·  4Comments  Â·  Source: rfjakob/gocryptfs

I'm working on a proof-of-concept application in go. This application needs to mount/unmount per user encrypted file systems before launching other services that rely on user's FS.
I'd like to embed gocryptfs in this application :

  • what should I import ?
  • on which gocryptfs' interfaces could I rely ?

Thanks for your help.

Most helpful comment

I'm precisely working in this direction, thanks. It'll be a bit more difficult to keep in sync with your repo, but I'm digging this way.

All 4 comments

gocryptfs isn't really designed to be embedded, and does not have public interfaces.

I think you'll be better off by calling it as an external cli application. The ABI is stable: https://github.com/rfjakob/gocryptfs/blob/master/Documentation/CLI_ABI.md

Too bad… Thanks for your reply.

I thought about it a bit more, embedding is certainly possible, but you'll have to copy the gocryptfs code into your app. Then you can use the interface in internal/fusefrontend.

I'm precisely working in this direction, thanks. It'll be a bit more difficult to keep in sync with your repo, but I'm digging this way.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

diegoarioza picture diegoarioza  Â·  4Comments

pepa65 picture pepa65  Â·  8Comments

cu picture cu  Â·  6Comments

pos42 picture pos42  Â·  14Comments

jxer picture jxer  Â·  9Comments