<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<div>
<div>The scripts in Aqueduct are hard coded (rhel 5).</div>
<div><br>
</div>
<div>Vince</div>
<br>
<br>
<br>
-------- Original message --------<br>
From: Jeffrey Blank &lt;blank@eclipse.ncsc.mil&gt; <br>
Date: 06/03/2013 5:32 PM (GMT-06:00) <br>
To: scap-security-guide@lists.fedorahosted.org <br>
Subject: Re: question about fix-common code <br>
<br>
<br>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">Thanks for the reminder on mailing list posts!<br>
<br>
Ah, okay, I was wondering how the plain-text was getting properly<br>
associated/inserted with the individual fixes inside the XCCDF; this<br>
explains it.&nbsp; My newer combinefixes.py does not yet solve that problem,<br>
but it certainly makes sense for it to do so.<br>
<br>
Was there any support for parameters in your scripts on Aqueduct, or was<br>
it STIG-hardcoded?<br>
<br>
<br>
<br>
<br>
On 06/03/2013 02:41 PM, Francisco Slavin wrote:<br>
&gt; On Sunday, June 02, 2013 1:57 PM, Jeff Blank wrote: <br>
&gt;&gt; Francisco, Shawn,<br>
&gt;&gt; What was your thinking behind the common-fix elements?<br>
&gt; I believe those elements were an attempt at allowing for function re-use.&nbsp; The inspiration was a set of examples posted to this list by Simon Lukasik (of OpenSCAP fame).&nbsp; The discussion that led up to my patch was in this thread:<br>
&gt; <a href="https://lists.fedorahosted.org/pipermail/scap-security-guide/2013-April/002970.html">
https://lists.fedorahosted.org/pipermail/scap-security-guide/2013-April/002970.html</a><br>
&gt; <br>
&gt; <br>
&gt;&gt; Please also see (shortly) my new patches for fix insertion.<br>
&gt;&gt; I've re-written the fix insertion stuff.&nbsp; So that people can &quot;declare&quot; their use of particular environment variables in bash (using a bash function).<br>
&gt;&gt; Then the reworked combinefixes.py will pick up on the declaration and assign an XCCDF &lt;sub idref/&gt; to that variable.&nbsp; &lt;sub idref/&gt; is how oscap supports inserting particular values inside a fix.
<br>
&gt;&gt; For unit testing (still incomplete), the bash function &quot;needs&quot; should grab the right value from XCCDF and populate it accordingly.<br>
&gt;&gt; Do we still need the fix-common elements, to insert them into the XCCDF?<br>
&gt;&gt; I like to delete unused code.<br>
&gt; <br>
&gt; I need to look through your new patches to properly respond here.&nbsp; The original goal was to populate some top-level &lt;plain-text&gt; elements with common functions.&nbsp; Per Simon's examples, the &lt;sub idref/&gt; can refer directly to these &lt;plain-text&gt; elements.&nbsp; This
 follows the way Mike P's original SSG-targeted remediation scripts were authored in Aqueduct:<br>
&gt; <a href="https://fedorahosted.org/aqueduct/browser/trunk/compliance/Bash/SSG/dev">
https://fedorahosted.org/aqueduct/browser/trunk/compliance/Bash/SSG/dev</a><br>
&gt; Where there were a series of scripts ending in &quot;common&quot; which were referenced as appropriate by the other &quot;.sh&quot; scripts.<br>
&gt; My approach was just to drop all of the &quot;common&quot; content into &lt;plain-text&gt; elements and have the &quot;.sh&quot; content be specific to individual &lt;fix&gt; elements.
<br>
&gt; <br>
&gt;&nbsp; - Francisco<br>
&gt; <br>
&gt;&gt; Jeff<br>
&gt; _______________________________________________<br>
&gt; scap-security-guide mailing list<br>
&gt; scap-security-guide@lists.fedorahosted.org<br>
&gt; <a href="https://lists.fedorahosted.org/mailman/listinfo/scap-security-guide">https://lists.fedorahosted.org/mailman/listinfo/scap-security-guide</a><br>
&gt;<br>
_______________________________________________<br>
scap-security-guide mailing list<br>
scap-security-guide@lists.fedorahosted.org<br>
<a href="https://lists.fedorahosted.org/mailman/listinfo/scap-security-guide">https://lists.fedorahosted.org/mailman/listinfo/scap-security-guide</a><br>
</div>
</span></font>
</body>
</html>