libgocryptfs/internal/fusefrontend/xattr_darwin.go
Bolshevik 5ccc06d5cb xattr: added passing of a "flags" parameter
Pass the "flags" parameter to the lower layer syscall.
This makes Apple applications being able to successfully save data.
2018-05-07 21:45:40 +02:00

16 lines
346 B
Go

// +build darwin
// Package fusefrontend interfaces directly with the go-fuse library.
package fusefrontend
import "github.com/pkg/xattr"
func disallowedXAttrName(attr string) bool {
return false
}
// On Darwin it is needed to unset XATTR_NOSECURITY 0x0008
func filterXattrSetFlags(flags int) int {
return flags &^ xattr.XATTR_NOSECURITY
}