aboutsummaryrefslogtreecommitdiff
path: root/tests/test_helpers
diff options
context:
space:
mode:
authorJakob Unterwurzacher2019-05-01 18:29:06 +0200
committerJakob Unterwurzacher2019-05-01 18:29:06 +0200
commite22c8ea0bd9b1670d4ab2bb4c810119f43f16f40 (patch)
treed72cfb805401d2513fa995c35e797cc363f7d83f /tests/test_helpers
parenta97d14c42d902e53efdb42e9b32c4a39559fc262 (diff)
tests: fix root_test permission issues
The parent directories need execute all permissions.
Diffstat (limited to 'tests/test_helpers')
-rw-r--r--tests/test_helpers/helpers.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/test_helpers/helpers.go b/tests/test_helpers/helpers.go
index 7275997..df71e52 100644
--- a/tests/test_helpers/helpers.go
+++ b/tests/test_helpers/helpers.go
@@ -61,12 +61,14 @@ func doInit() {
MountInfo = make(map[string]mountInfo)
// Something like /tmp/gocryptfs-test-parent-1234
testParentDir := fmt.Sprintf("%s/gocryptfs-test-parent-%d", os.TempDir(), os.Getuid())
- os.MkdirAll(testParentDir, 0700)
+ os.MkdirAll(testParentDir, 0755)
var err error
TmpDir, err = ioutil.TempDir(testParentDir, "")
if err != nil {
panic(err)
}
+ // Open permissions for the allow_other tests
+ os.Chmod(TmpDir, 0755)
DefaultPlainDir = TmpDir + "/default-plain"
DefaultCipherDir = TmpDir + "/default-cipher"
}
@@ -104,11 +106,11 @@ func ResetTmpDir(createDirIV bool) {
}
}
}
- err = os.Mkdir(DefaultPlainDir, 0700)
+ err = os.Mkdir(DefaultPlainDir, 0755)
if err != nil {
panic(err)
}
- err = os.Mkdir(DefaultCipherDir, 0700)
+ err = os.Mkdir(DefaultCipherDir, 0755)
if err != nil {
panic(err)
}