mount: Enable "DefaultPermissions" FUSE option by default

This enforces the Unix permissions of the snapshot files within the mounted filesystem, which will only allow users to access snapshot files if they had access to the file outside of the snapshot.
This commit is contained in:
Kyle Lacy committed 2018-11-26 21:16:01 -08:00
1 parent 2434ab2106
commit a35a24b8b4
1 file changed
+2
+2
View File
@@ -120,6 +120,8 @@ func mount(opts MountOptions, gopts GlobalOptions, mountpoint string) error {
mountOptions = append(mountOptions, systemFuse.AllowOther())
}
mountOptions = append(mountOptions, systemFuse.DefaultPermissions())
c, err := systemFuse.Mount(mountpoint, mountOptions...)
if err != nil {
return err