diff options
Diffstat (limited to 'internal/fusefrontend/xattr_darwin.go')
-rw-r--r-- | internal/fusefrontend/xattr_darwin.go | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/internal/fusefrontend/xattr_darwin.go b/internal/fusefrontend/xattr_darwin.go new file mode 100644 index 0000000..b626006 --- /dev/null +++ b/internal/fusefrontend/xattr_darwin.go @@ -0,0 +1,15 @@ +// +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 +} |