| 1 | <?xml version="1.0" encoding="UTF-8" ?> |
| 2 | <!-- |
| 3 | Copyright 2010 Red Hat Inc., Durham, North Carolina. |
| 4 | All Rights Reserved. |
| 5 | |
| 6 | This library is free software; you can redistribute it and/or |
| 7 | modify it under the terms of the GNU Lesser General Public |
| 8 | License as published by the Free Software Foundation; either |
| 9 | version 2.1 of the License, or (at your option) any later version. |
| 10 | |
| 11 | This library is distributed in the hope that it will be useful, |
| 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 14 | Lesser General Public License for more details. |
| 15 | |
| 16 | You should have received a copy of the GNU Lesser General Public |
| 17 | License along with this library; if not, write to the Free Software |
| 18 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 19 | |
| 20 | Authors: |
| 21 | Lukas Kuklinek <[email protected]> |
| 22 | --> |
| 23 | |
| 24 | <fixtemplate xmlns='http://open-scap.org/xml/fixtemplate#' system='urn:xccdf:fix:commands urn:xccdf:fix:script:sh'> |
| 25 | |
| 26 | |
| 27 | <!-- single line comment begining --> |
| 28 | <linecomment># </linecomment> |
| 29 | |
| 30 | |
| 31 | <!-- Text / code to be printed before actual script output --> |
| 32 | <before>#!/bin/bash |
| 33 | # OpenSCAP fix generator output for benchmark: <sub select='normalize-space($benchmark/cdf:title[1])'/> |
| 34 | |
| 35 | </before> |
| 36 | |
| 37 | |
| 38 | <!-- single fix entry template --> |
| 39 | <fixentry># XCCDF rule: <sub select='$rule/@id'/><if test='$rule/cdf:ident'> |
| 40 | # <sub select='string($rule/cdf:ident[1])'/></if> |
| 41 | <sub select='$val'/> |
| 42 | |
| 43 | </fixentry> |
| 44 | |
| 45 | |
| 46 | <!-- Text / code to be printed after actual script output --> |
| 47 | <after># generated: <sub select='$now'/> |
| 48 | # END OF SCRIPT |
| 49 | </after> |
| 50 | |
| 51 | </fixtemplate> |