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:
parent
2434ab2106
commit
a35a24b8b4
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue