2018-05-01 18:46:51 +02:00
|
|
|
// +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 {
|
2019-01-02 16:58:48 +01:00
|
|
|
// See https://opensource.apple.com/source/xnu/xnu-1504.15.3/bsd/sys/xattr.h.auto.html
|
|
|
|
const XATTR_NOSECURITY = 0x0008
|
2018-11-11 18:32:48 +01:00
|
|
|
|
2019-01-02 16:58:48 +01:00
|
|
|
return flags &^ XATTR_NOSECURITY
|
2018-11-11 18:32:48 +01:00
|
|
|
}
|