<feed xmlns='http://www.w3.org/2005/Atom'>
<title>gocryptfs/tests/xattr, branch v2.3.2</title>
<subtitle>Mirror of gocryptfs source code on Github</subtitle>
<id>http://nuetzlich.net/cgit/gocryptfs/atom?h=v2.3.2</id>
<link rel='self' href='http://nuetzlich.net/cgit/gocryptfs/atom?h=v2.3.2'/>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/'/>
<updated>2022-08-28T09:11:36+00:00</updated>
<entry>
<title>make format</title>
<updated>2022-08-28T09:11:36+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2022-08-28T09:11:36+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=003a7fa2e53ac15d2c94a34102ae12b69b23c586'/>
<id>urn:sha1:003a7fa2e53ac15d2c94a34102ae12b69b23c586</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fusefrontend: allow slashes in xattr names</title>
<updated>2021-12-19T13:43:56+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2021-12-19T13:43:56+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=64be5de75f42e415198ff5e77de509680b69e0e1'/>
<id>urn:sha1:64be5de75f42e415198ff5e77de509680b69e0e1</id>
<content type='text'>
xattr names have fewer restrictions than file names,
relax the validation.

Fixes https://github.com/rfjakob/gocryptfs/issues/627
</content>
</entry>
<entry>
<title>go mod: declare module version v2</title>
<updated>2021-08-23T13:05:15+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2021-08-23T13:05:15+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=69d88505fd7f4cb0d9e4f1918de296342fe05858'/>
<id>urn:sha1:69d88505fd7f4cb0d9e4f1918de296342fe05858</id>
<content type='text'>
Our git version is v2+ for some time now, but go.mod
still declared v1. Hopefully making both match makes
https://pkg.go.dev/github.com/rfjakob/gocryptfs/v2 work.

All the import paths have been fixed like this:

  find . -name \*.go | xargs sed -i s%github.com/rfjakob/gocryptfs/%github.com/rfjakob/gocryptfs/v2/%
</content>
</entry>
<entry>
<title>Fix issues found by ineffassign</title>
<updated>2021-08-18T13:48:01+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2021-08-18T13:47:17+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=64793fedf4ac8eebe05c57af75877944c60f03a4'/>
<id>urn:sha1:64793fedf4ac8eebe05c57af75877944c60f03a4</id>
<content type='text'>
gocryptfs$ ineffassign ./...

/home/jakob/go/src/github.com/rfjakob/gocryptfs/internal/configfile/config_file.go:243:2: ineffectual assignment to scryptHash
/home/jakob/go/src/github.com/rfjakob/gocryptfs/internal/configfile/config_file.go:272:2: ineffectual assignment to scryptHash
/home/jakob/go/src/github.com/rfjakob/gocryptfs/internal/fusefrontend/file.go:285:3: ineffectual assignment to fileID
/home/jakob/go/src/github.com/rfjakob/gocryptfs/internal/fusefrontend/node.go:367:3: ineffectual assignment to err
/home/jakob/go/src/github.com/rfjakob/gocryptfs/internal/fusefrontend/node_open_create.go:68:2: ineffectual assignment to fd
/home/jakob/go/src/github.com/rfjakob/gocryptfs/mount.go:308:2: ineffectual assignment to masterkey
/home/jakob/go/src/github.com/rfjakob/gocryptfs/gocryptfs-xray/xray_main.go:156:13: ineffectual assignment to err
/home/jakob/go/src/github.com/rfjakob/gocryptfs/internal/fusefrontend/prepare_syscall_test.go:65:16: ineffectual assignment to errno
/home/jakob/go/src/github.com/rfjakob/gocryptfs/internal/syscallcompat/open_nofollow_test.go:34:2: ineffectual assignment to fd
/home/jakob/go/src/github.com/rfjakob/gocryptfs/tests/defaults/acl_test.go:111:6: ineffectual assignment to err
/home/jakob/go/src/github.com/rfjakob/gocryptfs/tests/defaults/acl_test.go:181:2: ineffectual assignment to sz
/home/jakob/go/src/github.com/rfjakob/gocryptfs/tests/defaults/acl_test.go:198:2: ineffectual assignment to sz
/home/jakob/go/src/github.com/rfjakob/gocryptfs/tests/defaults/main_test.go:365:8: ineffectual assignment to err
/home/jakob/go/src/github.com/rfjakob/gocryptfs/tests/xattr/xattr_fd_test.go:30:6: ineffectual assignment to err
/home/jakob/go/src/github.com/rfjakob/gocryptfs/tests/xattr/xattr_fd_test.go:66:6: ineffectual assignment to err
</content>
</entry>
<entry>
<title>tests/xattr: fix acl blob</title>
<updated>2021-02-07T19:00:33+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2021-02-07T19:00:33+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=bb2484f1520102f4ab6c84400f9eef53d4cdd2ad'/>
<id>urn:sha1:bb2484f1520102f4ab6c84400f9eef53d4cdd2ad</id>
<content type='text'>
The blob was truncated to 31 bytes.
</content>
</entry>
<entry>
<title>tests: don't crash on empty Flistxattr result</title>
<updated>2020-07-12T11:40:21+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2020-07-12T11:40:21+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=fd0e8aa869ec74917d669d42f0e0d3b2888237b9'/>
<id>urn:sha1:fd0e8aa869ec74917d669d42f0e0d3b2888237b9</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tests: test xattr acls</title>
<updated>2020-02-29T19:38:48+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2020-02-29T19:38:48+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=fdfaa849f8ea2fc6687aa13a7057b5088e3c65e5'/>
<id>urn:sha1:fdfaa849f8ea2fc6687aa13a7057b5088e3c65e5</id>
<content type='text'>
Fixes https://github.com/rfjakob/gocryptfs/issues/453
</content>
</entry>
<entry>
<title>tests: use /var/tmp by default</title>
<updated>2019-10-06T19:53:20+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2019-10-06T19:50:27+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=8c4429408716d9890a98a48c246d616dbfea7e31'/>
<id>urn:sha1:8c4429408716d9890a98a48c246d616dbfea7e31</id>
<content type='text'>
On Fedora, /tmp is tmpfs, which behaves differently than ext4
(inode numbers are never reused, for example).

Use /var/tmp, which is ext4 on Fedora, to get a more realistic
test environment.

This also allows us to drop the xattr workaround.
</content>
</entry>
<entry>
<title>fusefrontend: Allow to set/remove xattr on directory without read permission.</title>
<updated>2019-01-05T11:34:40+00:00</updated>
<author>
<name>Sebastian Lackner</name>
</author>
<published>2019-01-05T03:33:50+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=5055f39bd534b1f13257f95ffdc28575b9b2e3ed'/>
<id>urn:sha1:5055f39bd534b1f13257f95ffdc28575b9b2e3ed</id>
<content type='text'>
Setting/removing extended attributes on directories was partially fixed with
commit eff35e60b63331e3e10f921792baa10b236a721d. However, on most file systems
it is also possible to do these operations without read access (see tests).

Since we cannot open a write-access fd to a directory, we have to use the
/proc/self/fd trick (already used for ListXAttr) for the other operations aswell.
For simplicity, let's separate the Linux and Darwin code again (basically revert
commit f320b76fd189a363a34bffe981aa67ab97df3362), and always use the
/proc/self/fd trick on Linux. On Darwin we use the best-effort approach with
openBackingFile() as a fallback.

More discussion about the available options is available in
https://github.com/rfjakob/gocryptfs/issues/308.
</content>
</entry>
<entry>
<title>fusefrontend: fix setting xattrs on directories</title>
<updated>2019-01-04T21:22:24+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2019-01-04T21:22:24+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=eff35e60b63331e3e10f921792baa10b236a721d'/>
<id>urn:sha1:eff35e60b63331e3e10f921792baa10b236a721d</id>
<content type='text'>
Directories cannot be opened read-write. Retry with RDONLY.
</content>
</entry>
</feed>
