diff --git a/lib/src/fixture.rs b/lib/src/fixture.rs
index 8693f1b3..85677fb0 100644
--- a/lib/src/fixture.rs
+++ b/lib/src/fixture.rs
@@ -229,8 +229,12 @@ impl SeLabel {
         }
     }
 
+    pub fn xattrs(&self) -> Vec<(&[u8], &[u8])> {
+        vec![(b"security.selinux\0", self.to_str().as_bytes())]
+    }
+
     pub fn new_xattrs(&self) -> glib::Variant {
-        vec![("security.selinux".as_bytes(), self.to_str().as_bytes())].to_variant()
+        self.xattrs().to_variant()
     }
 }