From 04858ddd222bbf7156f33f99cfb293a9b1e15ec8 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Wed, 2 Jun 2021 14:21:30 +0200 Subject: nametransform: check name validity on encryption xfstests generic/523 discovered that we allowed to set xattrs with "/" in the name, but did not allow to read them later. With this change we do not allow to set them in the first place. --- tests/example_filesystems/example_filesystems_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/example_filesystems') diff --git a/tests/example_filesystems/example_filesystems_test.go b/tests/example_filesystems/example_filesystems_test.go index 88132c0..36fb554 100644 --- a/tests/example_filesystems/example_filesystems_test.go +++ b/tests/example_filesystems/example_filesystems_test.go @@ -333,7 +333,8 @@ func TestExampleFSv13reverse(t *testing.T) { } dirA = tmpFsPath + dirA // Mount using password - test_helpers.MountOrFatal(t, dirA, dirB, "-reverse", "-extpass", "echo test", opensslOpt) + // We pass "-wpanic=false" because the '..' and '.' tests deliverately trigger warnings + test_helpers.MountOrFatal(t, dirA, dirB, "-reverse", "-extpass", "echo test", "-wpanic=false", opensslOpt) c := dirB + "/gocryptfs.conf" if !test_helpers.VerifyExistence(t, c) { t.Errorf("%s missing", c) -- cgit v1.2.3