tests: TestDirectMount: check for default_permissions

This commit is contained in:
Jakob Unterwurzacher 2023-05-18 10:14:21 +02:00
parent 09954c4bde
commit c67454464a
1 changed files with 2 additions and 0 deletions

View File

@ -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 {