<div dir="ltr"><div class="gmail_default" style="font-size:small">​Hello Greg,<br><br></div><div class="gmail_default" style="font-size:small">the OVAL check from that PR works like this:<br><span class="gmail-pl-s">The whole <span class="gmail-pl-s"><span class="gmail-pl-pds"></span>bootloader_password</span> check is PASS if /boot/grub2/grub.cfg does not exist, otherwise (if it exists) both of the following checks MUST pass:<span class="gmail-pl-pds"></span></span><br><span class="gmail-pl-s">"check both files to account for procedure change in documenation</span>" AND <span class="gmail-pl-s">"make sure a superuser is defined in /boot/grub2/grub.cfg</span>".<br><br></div><div class="gmail_default" style="font-size:small">The <span class="gmail-pl-s"><span class="gmail-pl-pds">"</span>check both files to account for procedure change in documenation<span class="gmail-pl-pds">"</span></span> is even more granular (it consists of two parts) and it will report pass only if one or both of the following checks pass:<br><span class="gmail-pl-s"><span class="gmail-pl-pds">"</span>make sure a password is defined in /boot/grub2/user.cfg<span class="gmail-pl-pds">"</span></span> OR <span class="gmail-pl-s"><span class="gmail-pl-pds">"</span>make sure a password is defined in /boot/grub2/grub.cfg<span class="gmail-pl-pds">"<br><br>You can find all the checks in <<span class="gmail-pl-ent">criterion</span>> element in the bootloader_password.xml OVAL file. <span class="gmail-pl-s"><span class="gmail-pl-pds">To see the specific definition of a test performed</span></span> for a check just look for<span class="gmail-pl-e"> the string defined in the test_ref</span> attribute (in <<span class="gmail-pl-ent">criterion</span>> element).<br></span></span></div><div class="gmail_default" style="font-size:small"><span class="gmail-pl-s"><span class="gmail-pl-pds"><br></span></span></div><div class="gmail_default" style="font-size:small"><span class="gmail-pl-s"><span class="gmail-pl-pds">Rationale about these checks can be found here:<br><a href="https://github.com/OpenSCAP/scap-security-guide/issues/2618">https://github.com/OpenSCAP/scap-security-guide/issues/2618</a><br></span></span></div><div class="gmail_default" style="font-size:small"><span class="gmail-pl-s"><span class="gmail-pl-pds">or in the official documentation:<br><a href="https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/system_administrators_guide/sec-protecting_grub_2_with_a_password">https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/system_administrators_guide/sec-protecting_grub_2_with_a_password</a><br><br></span></span></div><div class="gmail_default" style="font-size:small"><span class="gmail-pl-s"><span class="gmail-pl-pds">Best Regards,<br></span></span></div><div class="gmail_default" style="font-size:small"><span class="gmail-pl-s"><span class="gmail-pl-pds">Matus<br></span></span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 6, 2018 at 2:57 AM, Greg Silverman <span dir="ltr"><<a href="mailto:Greg.Silverman@veritas.com" target="_blank">Greg.Silverman@veritas.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div link="#0563C1" vlink="#954F72" lang="EN-US">
<div class="m_3319174363693725183WordSection1">
<p class="MsoNormal">We have been using OSCAP 1.31. In that version, this rule, xccdf_org.ssgproject.content_<wbr>rule_bootloader_password,  is checked by searching the grub.cfg file for the hash of the password, instead of checking for the existence of user.cfg
 and its contents containing the hash. I see in <a href="https://github.com/OpenSCAP/scap-security-guide/pull/2619/files" target="_blank">
<span style="color:blue">https://github.com/OpenSCAP/<wbr>scap-security-guide/pull/2619/<wbr>files</span></a> that there is a change related to checking user.cfg. I cannot quite tell what it is doing. Is it saying that checking the user.cfg file is sufficient?<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Thanks,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Greg Silverman<u></u><u></u></p>
<p class="MsoNormal">Veritas Technologies<u></u><u></u></p>
<p class="MsoNormal">Mountain View, CA<u></u><u></u></p>
</div>
</div>

<br>______________________________<wbr>_________________<br>
Open-scap-list mailing list<br>
<a href="mailto:Open-scap-list@redhat.com">Open-scap-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/open-scap-list" rel="noreferrer" target="_blank">https://www.redhat.com/<wbr>mailman/listinfo/open-scap-<wbr>list</a><br></blockquote></div><br></div>