From c67454464aaabec7c594eeb84983287057ab4231 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Thu, 18 May 2023 10:14:21 +0200 Subject: tests: TestDirectMount: check for default_permissions --- tests/cli/directmount_test.go | 2 ++ 1 file changed, 2 insertions(+) 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 { -- cgit v1.2.3