// ReadSecurityXattrToTarHeader reads security.capability xattr from filesystem
// to a tar header
ReadSecurityXattrToTarHeader reads security.capability xattr from filesystem
to a tar header
// ReadSecurityXattrToTarHeader reads security . capability xattr from filesystem // to a tar header
func ReadSecurityXattrToTarHeader(path string, hdr *tar.Header) error {
        capability, _ := system.Lgetxattr(path, "security.capability")
        if capability != nil {
                hdr.Xattrs = make(map[string]string)
                hdr.Xattrs["security.capability"] = string(capability)
        }
        return nil
}
func ReadSecurityXattrToTarHeader ( path string , hdr * tar . Header ) error { capability , _ := system . Lgetxattr ( path , " " ) if capability != nil { hdr . Xattrs = make ( map [ string ] string ) hdr . Xattrs [ " " ] = string ( capability ) } return nil }
ReadSecurityXattrToTarHeader reads security.capability xattr from filesystem
to a tar header
ReadSecurityXattrToTarHeader reads security . capability xattr from filesystem to a tar header