This file is indexed.

/usr/share/fwbuilder-5.3.7/migration/FWObjectDatabase_5.xslt is in fwbuilder-common 5.3.7-1.

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
<!--
   Filename:     FWObjectDatabase_5.xslt
   Author:       Vadim Kurland
   Build date:   05/11/2008
   Last changed: 05/11/2008
   Version:      1.0.0
   Description:  translates fwbuilder object database from v5 to 6
                 Move branch rule sets from under PolicyRule to under
                 Firewall.

-->

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


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

<xsl:template match="*" mode="copy">
  <xsl:copy>
    <xsl:copy-of select="@*"/>
    <xsl:apply-templates mode="copy"/>
  </xsl:copy>
</xsl:template>

<xsl:template match="fwb:Firewall" mode="copy">
  <xsl:element name="Firewall" namespace="http://www.fwbuilder.org/1.0/">
    <xsl:copy-of select="@*"/> 
    <xsl:text>
        </xsl:text>
    <xsl:apply-templates select="fwb:NAT" mode="copy"/>
    <xsl:text>
          </xsl:text>
    <xsl:apply-templates select="fwb:Policy" mode="copy"/>
    <xsl:text>
          </xsl:text>


    <xsl:for-each select="fwb:Policy/fwb:PolicyRule/fwb:Policy/fwb:PolicyRule/fwb:Policy">
      <xsl:element name="Policy" namespace="http://www.fwbuilder.org/1.0/">
        <xsl:copy-of select="@*"/> 
        <xsl:text>
            </xsl:text>
        <xsl:apply-templates select="*" mode="copy"/>
      </xsl:element>
    <xsl:text>
          </xsl:text>
    </xsl:for-each>
    <xsl:text>
          </xsl:text>


    <xsl:for-each select="fwb:Policy/fwb:PolicyRule/fwb:Policy">
      <xsl:element name="Policy" namespace="http://www.fwbuilder.org/1.0/">
        <xsl:copy-of select="@*"/> 
        <xsl:text>
            </xsl:text>
        <xsl:apply-templates select="*" mode="copy"/>
      </xsl:element>
    <xsl:text>
          </xsl:text>
    </xsl:for-each>
    <xsl:text>
          </xsl:text>


    <xsl:apply-templates select="fwb:Routing" mode="copy"/>
    <xsl:text>
          </xsl:text>
    <xsl:apply-templates select="fwb:Interface" mode="copy"/>
    <xsl:text>
          </xsl:text>
    <xsl:apply-templates select="fwb:Management" mode="copy"/>
    <xsl:text>
          </xsl:text>
    <xsl:apply-templates select="fwb:FirewallOptions" mode="copy"/>
    <xsl:text>
          </xsl:text>
  </xsl:element>
</xsl:template>

<xsl:template match="fwb:PolicyRule" mode="copy">
  <xsl:element name="PolicyRule" namespace="http://www.fwbuilder.org/1.0/">
    <xsl:copy-of select="@*"/> 
    <xsl:text>
            </xsl:text>
    <xsl:apply-templates select="fwb:Src|fwb:Dst|fwb:Srv|fwb:Itf|fwb:When" mode="copy"/>
    <xsl:text>
            </xsl:text>
    <xsl:for-each select="fwb:PolicyRuleOptions">
      <xsl:element name="PolicyRuleOptions" namespace="http://www.fwbuilder.org/1.0/">
        <xsl:copy-of select="@*"/> 
        <xsl:apply-templates mode="copy"/>
      </xsl:element>
      <xsl:text>
          </xsl:text>
    </xsl:for-each>
  </xsl:element>
  <xsl:text>
          </xsl:text>
</xsl:template>

<xsl:template match="fwb:Policy" mode="copy">
  <xsl:element name="Policy" namespace="http://www.fwbuilder.org/1.0/">
    <xsl:copy-of select="@*"/> 
    <xsl:attribute name="name">Policy</xsl:attribute>
    <xsl:text>
          </xsl:text>
    <xsl:apply-templates select="*" mode="copy"/>
  </xsl:element>
</xsl:template>


<xsl:template match="*[attribute::id='root']">
  <FWObjectDatabase xmlns="http://www.fwbuilder.org/1.0/">
    <xsl:attribute name="version">6</xsl:attribute>
    <xsl:attribute name="id">root</xsl:attribute>
    <xsl:apply-templates select="*" mode="copy"/>
  </FWObjectDatabase>
</xsl:template>

</xsl:stylesheet>