<feed xmlns='http://www.w3.org/2005/Atom'>
<title>gocryptfs/internal/nametransform, branch v1.3</title>
<subtitle>Mirror of gocryptfs source code on Github</subtitle>
<id>http://nuetzlich.net/cgit/gocryptfs/atom?h=v1.3</id>
<link rel='self' href='http://nuetzlich.net/cgit/gocryptfs/atom?h=v1.3'/>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/'/>
<updated>2017-04-29T12:15:13+00:00</updated>
<entry>
<title>nametransform: WriteDirIV: replace ioutil.WriteFile</title>
<updated>2017-04-29T12:15:13+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2017-04-29T12:15:13+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=7d38f80a78644c8ec4900cc990bfb894387112ed'/>
<id>urn:sha1:7d38f80a78644c8ec4900cc990bfb894387112ed</id>
<content type='text'>
As reported at https://github.com/rfjakob/gocryptfs/issues/105 ,
the "ioutil.WriteFile(file, iv, 0400)" call causes "permissions denied"
errors on an NFSv4 setup.

"strace"ing diriv creation and gocryptfs.conf creation shows this:

conf (works on the user's NFSv4 mount):
openat(AT_FDCWD, "/tmp/a/gocryptfs.conf.tmp", O_WRONLY|O_CREAT|O_EXCL|O_CLOEXEC, 0400) = 3

diriv (fails):
openat(AT_FDCWD, "/tmp/a/gocryptfs.diriv", O_WRONLY|O_CREAT|O_TRUNC|O_CLOEXEC, 0400) = 3

This patch creates the diriv file with the same flags that are used for
creating the conf:
openat(AT_FDCWD, "/tmp/a/gocryptfs.diriv", O_WRONLY|O_CREAT|O_EXCL|O_CLOEXEC, 0400) = 3

Closes https://github.com/rfjakob/gocryptfs/issues/105
</content>
</entry>
<entry>
<title>nametransform: fix Raw64 not affecting symlink targets</title>
<updated>2017-03-05T21:59:25+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2017-03-05T21:59:25+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=445b5019e3f5a74409ca66c166cc1c3ccdd3dce7'/>
<id>urn:sha1:445b5019e3f5a74409ca66c166cc1c3ccdd3dce7</id>
<content type='text'>
The symlink functions incorrectly hardcoded the padded
base64 variant.
</content>
</entry>
<entry>
<title>nametransform: fix Raw64 not affecting longnames</title>
<updated>2017-03-05T21:25:41+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2017-03-05T21:25:41+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=5b54577d2ec553055c06e05841f626c10368c6b6'/>
<id>urn:sha1:5b54577d2ec553055c06e05841f626c10368c6b6</id>
<content type='text'>
HashLongName() incorrectly hardcoded the call to base64.URLEncoding.
</content>
</entry>
<entry>
<title>Drop Go 1.4 compatability code everywhere</title>
<updated>2017-03-05T16:44:14+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2017-03-05T16:44:14+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=966308eeb7793a4a8ca578e160981e3b059b82e6'/>
<id>urn:sha1:966308eeb7793a4a8ca578e160981e3b059b82e6</id>
<content type='text'>
Yields a nice reduction in code size.
</content>
</entry>
<entry>
<title>cryptocore: use eme v1.1 interface</title>
<updated>2017-03-05T12:58:24+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2017-03-05T12:58:24+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=e032539e2c09cd4d1f007d33d7ef97b0fec689ed'/>
<id>urn:sha1:e032539e2c09cd4d1f007d33d7ef97b0fec689ed</id>
<content type='text'>
Version 1.1 of the EME package (github.com/rfjakob/eme) added
a more convenient interface. Use it.

Note that you have to upgrade your EME package (go get -u)!
</content>
</entry>
<entry>
<title>Replace all calls to naked panic() with log.Panic()</title>
<updated>2016-12-10T10:54:36+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2016-12-10T10:50:16+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=c9f4400e6dc71a36df5dc9725f52a8968f5f9803'/>
<id>urn:sha1:c9f4400e6dc71a36df5dc9725f52a8968f5f9803</id>
<content type='text'>
We want all panics to show up in the syslog.
</content>
</entry>
<entry>
<title>fusefronted: preserve owner for device nodes and sockets</title>
<updated>2016-11-28T22:09:47+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2016-11-28T22:09:47+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=e3c5e3f1c8db31e62bbb781a238da4cf76ed1ffc'/>
<id>urn:sha1:e3c5e3f1c8db31e62bbb781a238da4cf76ed1ffc</id>
<content type='text'>
https://github.com/rfjakob/gocryptfs/issues/64
</content>
</entry>
<entry>
<title>Fix golint warnings</title>
<updated>2016-11-09T23:38:01+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2016-11-09T23:38:01+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=e7f57695a6c7b3ed545793347506907c7aec3ecc'/>
<id>urn:sha1:e7f57695a6c7b3ed545793347506907c7aec3ecc</id>
<content type='text'>
$ golint ./... | grep -v underscore | grep -v ALL_CAPS
internal/fusefrontend_reverse/rfs.go:52:36: exported func NewFS returns unexported type *fusefrontend_reverse.reverseFS, which can be annoying to use
internal/nametransform/raw64_go1.5.go:10:2: exported const HaveRaw64 should have comment (or a comment on this block) or be unexported
</content>
</entry>
<entry>
<title>nametransform: get rid of leading "./"</title>
<updated>2016-11-09T22:41:47+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2016-11-09T22:41:47+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=df28fc5a11f5e52897f45cc299ab62a2a2cbaf4c'/>
<id>urn:sha1:df28fc5a11f5e52897f45cc299ab62a2a2cbaf4c</id>
<content type='text'>
Paths in the root directory were encrypted to this:

    foobar -&gt; ./N9vPc0gXUY4PDSt0-muYXQ==
</content>
</entry>
<entry>
<title>nametransform: nicer error message on empty gocryptfs.diriv</title>
<updated>2016-11-06T13:09:34+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2016-11-06T13:09:34+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=df1e3a10c45cefb393a350f75ebf3fbb8117ef2f'/>
<id>urn:sha1:df1e3a10c45cefb393a350f75ebf3fbb8117ef2f</id>
<content type='text'>
Old:

	Nov 06 13:34:38 brikett gocryptfs[16228]: ReadDirIVAt: Read failed: EOF
	Nov 06 13:34:38 brikett gocryptfs[16228]: go-fuse: can't convert error type: EOF

New:

	Nov 06 14:08:43 brikett gocryptfs[17361]: ReadDirIVAt: wanted 16 bytes, got 0. Returning EINVAL.
</content>
</entry>
</feed>
