Jakob Unterwurzacher
|
53fe6f5690
|
ctlsock: abort message processing on JSON error
The code was missing a "continue" in that branch.
Also improve the error messages a bit.
|
2017-01-29 18:25:46 +01:00 |
|
Jakob Unterwurzacher
|
532ef15417
|
ctlsock: interpret paths that point above CWD as ""
Paths that start with ".." were previously accepted as-is.
|
2017-01-29 15:24:47 +01:00 |
|
Jakob Unterwurzacher
|
12374be9c5
|
ctlsock: abort the connection if the request is too big
Reading partial JSON would cause a mess. Just kill the connection.
Also, stop using syscall.PathMax that is not defined on Darwin
( https://github.com/rfjakob/gocryptfs/issues/15#issuecomment-264253024 )
|
2016-12-10 20:43:08 +01:00 |
|
Jakob Unterwurzacher
|
8945f4db95
|
ctlsock: add a note about Accept() throwing errors on Close()
|
2016-12-10 15:01:00 +01:00 |
|
Jakob Unterwurzacher
|
6af725ff09
|
ctlsock: exit early if socket cannot be created; delete on exit
Both are achieved by opening the socket from main and passing
it to the ctlsock package instead of passing the path.
|
2016-12-10 14:54:06 +01:00 |
|
Jakob Unterwurzacher
|
2758c75cae
|
ctlsock: sanitize paths before passing them to the backend
You used to be able to crash gocryptfs by passing "/foo"
of "foo/" to the ctlsock.
Fixes https://github.com/rfjakob/gocryptfs/issues/66
|
2016-12-10 12:59:54 +01:00 |
|
Jakob Unterwurzacher
|
75ebb28a62
|
ctlsock: add initial limited implementation
At the moment, in forward mode you can only encrypt paths
and in reverse mode you can only decrypt paths.
|
2016-11-10 00:27:08 +01:00 |
|