-
Notifications
You must be signed in to change notification settings - Fork 241
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ctlsock crashes with leading slash in EncryptPath #66
Comments
Yes, I can reproduce this, the backtrace is pasted below. Thanks for the report!
|
Hmm, I don't see a backtrace in |
"XYZ" is a random number, for example I just got "/tmp/gocryptfs_paniclog.658063417" |
The paths that get passed into the control socket are now canonicalized as the Linux kernel would do when it passes a path to us. This fixes the panics. If the path has been non-canonical, you get a message in the WarnText JSON element:
|
However, I noticed that the socket file is not deleted on exit. This is tracked in #67 and will be fixed shortly (probably tomorrow). |
Thanks for the quick fix! Yes, I had to delete ctlsock manually after it crashed. Thanks for fixing that too! I don't see any panic logs of the form |
FYI I have just added a small interactive shell script for path encryption: https://github.com/rfjakob/gocryptfs/blob/master/contrib/ctlsock-encrypt.bash |
When I send a request like
{"EncryptPath":"/foo"}
to the control socket, it crashes (subsequent requests result innc: unix connect failed: Connection refused
). Without a leading slash everything seems to work.I'm sending requests with
netcat-openbsd
asecho '{"EncryptPath":"/foo"}' | nc -U ctlsock | jq -r '.Result'
The text was updated successfully, but these errors were encountered: