[PATCH] Update to put fix content common functions into plain-text elements
Shawn Wells
shawn at redhat.com
Tue Apr 9 01:24:32 UTC 2013
On 4/8/13 9:06 PM, Shawn Wells wrote:
> On 4/7/13 3:44 PM, Francisco Slavin wrote:
>> As per Simon Lukasik's suggestion, pulling common bash functions into
>> XCCDF <plain-text> elements for use by various <fix> elements using
>> <sub> references.
>>
>> Francisco Slavin (1):
>> Infrastructure: Update fix transform handling to put common functions
>> into <plain-text> elements for easy code reuse.
>>
>> RHEL6/transforms/combinefixes.py | 25 +++++++++++++++++++++++--
>> RHEL6/transforms/xccdf-addfixes.xslt | 30
>> +++++++++++++++++++++++++++++-
>> 2 files changed, 52 insertions(+), 3 deletions(-)
>
>
> I like this. Here's how I tested:
>
> (1) Create a common function, package_install, and update the
> install_aide.sh file to use it:
>
>> $ cat <<EOF>/input/fixes/bash/package_install.common
>> #!/bin/bash
>> function package_install {
>> yum -y install -bash
>> }
>>
>> $ cat "package_install(aide)" >/input/fixes/bash/install_aide.sh
err, s/cat/echo/r
More information about the scap-security-guide
mailing list