This file is indexed.

/usr/share/fwbuilder-5.1.0.3599/migration/FWObjectDatabase_0.10.8.xslt is in fwbuilder-common 5.1.0-4.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
<!--
   Filename:     0.10.8/FWObjectDatabase.xslt
   Author:       Vadim Kurland
   Build date:   08/09/2002
   Last changed: 09/04/2002
   Version:      1.0.0
   Description:  translates fwbuilder object database from v0.10.8 to v0.10.9

                 adds child element IPv4 to each Interface, assigns
                 address and netmask attribute values to IPv4 and
                 removes these attrbites from Interface

                 removes attribute "address" from elements Host and Firewall
                 and, if element does not have child element Interface,
                 creates one with its own child element IPv4 and assigns
                 value of attribute "address" to it.

                 Sets name for the new IPv4 objects using name of the parent
                 host or firewall object
-->

<xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:fwb="http://www.fwbuilder.org/1.0/">



<xsl:output method="xml" version="1.0" 
   doctype-system="fwbuilder.dtd" indent="yes" encoding="utf-8"/>


<!--  Host or Firewall -->
<xsl:template name="Host" mode="copy">
<xsl:text>
</xsl:text>

<xsl:copy select=".">

<xsl:variable name="hid"   select="@id"/>
<xsl:variable name="hname" select="@name"/>
<xsl:variable name="addr"  select="@address"/>

<xsl:for-each select="@*">
<xsl:choose>
<xsl:when test="name()='address'"></xsl:when>
<xsl:when test="name()='netmask'"></xsl:when>
<xsl:otherwise>
  <xsl:copy-of select="."/>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>

<xsl:choose>
  <xsl:when test="fwb:Interface">
  </xsl:when>
  <xsl:otherwise>

<xsl:text>
</xsl:text>

<Interface>
<xsl:attribute name="id"><xsl:value-of select="$hid"/>-i</xsl:attribute>
<xsl:attribute name="name">interface-1</xsl:attribute>
<xsl:attribute name="dyn">False</xsl:attribute>
<xsl:attribute name="security_level">0</xsl:attribute>

<xsl:text>
</xsl:text>
    <IPv4>
    <xsl:attribute name="id"><xsl:value-of select="$hid"/>-i-1-addr</xsl:attribute>
    <xsl:attribute name="name"><xsl:value-of select="$hname"/></xsl:attribute>
    <xsl:attribute name="address">
      <xsl:value-of select="$addr"/>
    </xsl:attribute>
    <xsl:attribute name="netmask">255.255.255.255</xsl:attribute>
    </IPv4>
<xsl:text>
</xsl:text>
</Interface>

  </xsl:otherwise>
</xsl:choose>

<xsl:text>
</xsl:text>

  <xsl:apply-templates mode="copy"/>

<!--  </Host> -->
</xsl:copy>
</xsl:template>



<!-- Interface -->
<xsl:template name="Interface" mode="copy">
<xsl:text>
</xsl:text>
  <Interface>

<xsl:variable name="addr"    select="@address"/>
<xsl:variable name="netm"    select="@netmask"/>
<xsl:variable name="ifaceid" select="@id"/>
<xsl:variable name="hname"   select="../@name"/>

<xsl:for-each select="@*">
<xsl:choose>
<xsl:when test="name()='address'"></xsl:when>
<xsl:when test="name()='netmask'"></xsl:when>
<xsl:otherwise>
  <xsl:copy-of select="."/>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>

<xsl:choose>
  <xsl:when test="fwb:IPv4">
  </xsl:when>
  <xsl:otherwise>
<xsl:text>
</xsl:text>

<xsl:variable name="ipv4id" select="concat($ifaceid,'-ipv4')"/>

    <IPv4>
    <xsl:attribute name="id">     <xsl:value-of select="$ipv4id"/></xsl:attribute>
    <xsl:attribute name="name">   <xsl:value-of select="$hname"/> </xsl:attribute>
    <xsl:attribute name="address"><xsl:value-of select="$addr"/>  </xsl:attribute>
    <xsl:attribute name="netmask"><xsl:value-of select="$netm"/>  </xsl:attribute>
    </IPv4>
  </xsl:otherwise>
</xsl:choose>

<xsl:text>
</xsl:text>

  <xsl:apply-templates mode="copy"/>

  </Interface>

</xsl:template>


<xsl:template name="copy-element">
  <xsl:copy>
    <xsl:for-each select="@*">
      <xsl:copy/>
    </xsl:for-each>
    <xsl:apply-templates mode="copy"/>
  </xsl:copy>
</xsl:template>

<xsl:template match="fwb:*" mode="copy">
  <xsl:choose>
    <xsl:when test="name()='Host'">
      <xsl:call-template name="Host"/>
    </xsl:when>
    <xsl:when test="name()='Firewall'">
      <xsl:call-template name="Host"/>
    </xsl:when>
    <xsl:when test="name()='Interface'">
      <xsl:call-template name="Interface"/>
    </xsl:when>
    <xsl:otherwise>
      <xsl:call-template name="copy-element"/>
    </xsl:otherwise>
  </xsl:choose>
</xsl:template>



<xsl:template match="*[attribute::id='root']">

  <FWObjectDatabase xmlns="http://www.fwbuilder.org/1.0/">

  <xsl:attribute name="version">0.10.9</xsl:attribute>
  <xsl:attribute name="id">root</xsl:attribute>

  <xsl:apply-templates select="*" mode="copy"/>

  </FWObjectDatabase>
</xsl:template>

</xsl:stylesheet>