aboutsummaryrefslogtreecommitdiff
path: root/internal/fusefrontend/xattr_darwin.go
blob: 87604807f115586226b149ebeead35317cff464e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// +build darwin

// Package fusefrontend interfaces directly with the go-fuse library.
package fusefrontend

func disallowedXAttrName(attr string) bool {
	return false
}

// On Darwin it is needed to unset XATTR_NOSECURITY 0x0008
func filterXattrSetFlags(flags int) int {
	// See https://opensource.apple.com/source/xnu/xnu-1504.15.3/bsd/sys/xattr.h.auto.html
	const XATTR_NOSECURITY = 0x0008

	return flags &^ XATTR_NOSECURITY
}