summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Unterwurzacher2023-05-18 10:14:21 +0200
committerJakob Unterwurzacher2023-05-18 10:14:21 +0200
commitc67454464aaabec7c594eeb84983287057ab4231 (patch)
tree937d457a73d15f5b79e211fcb6b56c3a23006e92
parent09954c4bdecf0ca6da65776f176dc934ffced2b0 (diff)
tests: TestDirectMount: check for default_permissions
-rw-r--r--tests/cli/directmount_test.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/cli/directmount_test.go b/tests/cli/directmount_test.go
index 3e23e6a..7ecbf80 100644
--- a/tests/cli/directmount_test.go
+++ b/tests/cli/directmount_test.go
@@ -74,6 +74,8 @@ func TestDirectMount(t *testing.T) {
}
checkOptionPresent(t, info.VFSOptions, "max_read=", true)
checkOptionPresent(t, info.VFSOptions, "allow_other", row.allow_other)
+ // gocryptfs enables default_permissions when allow_other is enabled
+ checkOptionPresent(t, info.VFSOptions, "default_permissions", row.allow_other)
checkOptionPresent(t, info.Options, "noexec", row.noexec)
// Enabling suid and dev only works as root
if os.Getuid() == 0 {