benoit@0: {# benoit@0: # Description: benoit@0: # Template for generation of OVAL documents benoit@0: # benoit@0: # Authors: benoit@0: # Antu Sanadi benoit@0: # benoit@0: # Copyright: benoit@0: # Copyright (C) 2014 Greenbone Networks GmbH benoit@0: # benoit@0: # This program is free software; you can redistribute it and/or benoit@0: # modify it under the terms of the GNU General Public License benoit@0: # as published by the Free Software Foundation; either version 2 benoit@0: # of the License, or (at your option) any later version. benoit@0: # benoit@0: # This program is distributed in the hope that it will be useful, benoit@0: # but WITHOUT ANY WARRANTY; without even the implied warranty of benoit@0: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the benoit@0: # GNU General Public License for more details. benoit@0: # benoit@0: # You should have received a copy of the GNU General Public License benoit@0: # along with this program; if not, write to the Free Software benoit@0: # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. benoit@0: -#} benoit@0: benoit@0: benoit@0: {% import "oval_core.j2" as oval_core -%} benoit@0: benoit@0: benoit@0: SecPod SCAP Repository benoit@0: 5.10 benoit@0: {{ now.isoformat() }} benoit@0: benoit@0: benoit@0: {%- set done = [] %} benoit@0: {% for prod in cvrf.getProductList() %} benoit@0: {%- set os, package = cvrf._producttree.decomposeProduct(prod._productid) %} benoit@0: {%- if os is not none %} benoit@0: {%- set rls = os._name | release_map %} benoit@0: {%- set rpm = package._name | for_rpmvuln %} benoit@0: {%- if rls != 'UNKNOWN' %} benoit@0: {%- if (rls, rpm) not in done %} benoit@0: benoit@0: benoit@0: {{ os._name }} is installed benoit@0: benoit@0: {{ os._name }} benoit@0: benoit@0: benoit@0: {{ os._name }} is installed benoit@0: benoit@0: benoit@0: benoit@0: SecPod Team benoit@0: benoit@0: benoit@0: ACCEPTED benoit@0: benoit@0: benoit@0: benoit@0: benoit@0: benoit@0: benoit@0: benoit@0: benoit@0: {{ package._name }} is installed benoit@0: benoit@0: {{ package._name }} benoit@0: benoit@0: benoit@0: {{ package._name }} is installed benoit@0: benoit@0: benoit@0: benoit@0: SecPod Team benoit@0: benoit@0: benoit@0: ACCEPTED benoit@0: benoit@0: benoit@0: benoit@0: benoit@0: benoit@0: benoit@0: benoit@0: benoit@0: {{ cvrf._title }} ({{ cvrf._tracking._id }}) benoit@0: benoit@0: {{ os._name }} benoit@0: {{ package._name }} benoit@0: benoit@0: benoit@0: benoit@0: {%- for vuln in cvrf._vulnerabilities %} benoit@0: benoit@0: {%- endfor %}) benoit@0: {{ oval_core.notes(cvrf, 'Details') }} benoit@0: benoit@0: benoit@0: benoit@0: SecPod Team benoit@0: benoit@0: benoit@0: INITIAL SUBMISSION benoit@0: benoit@0: benoit@0: benoit@0: benoit@0: benoit@0: benoit@0: benoit@0: benoit@0: benoit@0: benoit@0: benoit@0: benoit@0: benoit@0: benoit@0: benoit@0: benoit@0: benoit@0: benoit@0: benoit@0: benoit@0: benoit@0: benoit@0: benoit@0: benoit@0: benoit@0: benoit@0: /etc benoit@0: redhat-release benoit@0: ^Red Hat Enterprise.*release.*$ benoit@0: 1 benoit@0: benoit@0: benoit@0: {{ package._name }} benoit@0: benoit@0: benoit@0: benoit@0: benoit@0: ^Red Hat Enterprise.*release 7.*$ benoit@0: benoit@0: benoit@0: 0:2.3.5-3.el7_0 benoit@0: benoit@0: benoit@0: benoit@0: benoit@0: {{- done.append((rls, rpm)) or '' }} benoit@0: {%- endif %} benoit@0: {%- endif %} benoit@0: {%- endif %} benoit@0: {%- endfor %}