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 2018-10-02 21:34:28 -07:00
parent 2434ab2106
commit a35a24b8b4
1 changed files with 2 additions and 0 deletions

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