summaryrefslogtreecommitdiff
path: root/internal/fusefrontend/xattr_linux_unit_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/fusefrontend/xattr_linux_unit_test.go')
-rw-r--r--internal/fusefrontend/xattr_linux_unit_test.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/internal/fusefrontend/xattr_linux_unit_test.go b/internal/fusefrontend/xattr_linux_unit_test.go
new file mode 100644
index 0000000..5fea58b
--- /dev/null
+++ b/internal/fusefrontend/xattr_linux_unit_test.go
@@ -0,0 +1,13 @@
+// +build linux
+
+package fusefrontend
+
+import (
+ "testing"
+)
+
+func TestDisallowedLinuxAttributes(t *testing.T) {
+ if !disallowedXAttrName("xxxx") {
+ t.Fatalf("Names that don't start with 'user.' should fail")
+ }
+}