Yep, that's where I started, just making sure I could get a hardened image at install.  But you can't (at least I didn't see a place on my RHEL7.3 box) to make changes to the selection of profiles included with the install RPM.  I can bring up scap-workbench on a live box and make my changes there, and I was hoping to grab that customization and use it for the 'tailoring-path' option in the '%addon org_fedora_oscap' section.  Anaconda yowls after installing stuff that it can't find the file.  At the point where the error occurred it doesn't look like the floppy is mounted at all.  This is my first dive into using kickstarts/anaconda like this and I'm not sure it is possible our of the box.  
I'm considering two workarounds - 

1) Remaster the RHEL7.3 install ISO to include a new RPM with my customization tucked into the correct location
2) Standup a webserver to supply a datastream or archive of the desired profile, with my tailoring, and reference that via https

I'm still sorting out in my head where the remediation happens during install - if I understand it correctly the indicated profile is scanned early enough to pull the info about partitioning and the l like before much is done, and other bits happen after everything is installed.  But I don't know if that later hardening is before or after the %post section happens.

-Rob

 

From: Albrecht, Thomas C [thomas.c.albrecht@lmco.com]
Sent: Friday, February 10, 2017 2:50 PM
To: SCAP Security Guide
Subject: EXTERNAL: RE: Kickstart from floppy wth SCAP and tailoring

Have you tried doing a manual install using the SCAP hardening in the install menu, and then stealing the code from the resulting anaconda.cfg that is generated in /root?

 

From: Robert Sanders [mailto:rsanders@forcepoint.com]
Sent: Friday, February 10, 2017 2:48 PM
To: scap-security-guide@lists.fedorahosted.org
Subject: EXTERNAL: Kickstart from floppy wth SCAP and tailoring

 

Hi all,

  Have a quick question - I'm looking at using a kickstart file to automate our OS install, but I also want to use the SCAP plugin to handle the initial lockdown of our images.  Looking at the 'tailoring-path' option to the anaconda plugin looks promising, but the docs indicate that the path for this option is relative to the archive being used.  Is there a way to specify the path so that it will the path from the 'floppy' image I'm using (currently booting by adding "linux ks=hd:fd0:ks.cfg"), or do I need to stand everything up as an http/https/ftp server and reference the SCAP contents and my tailoring file that way?

 

-Rob

 

 
 

 



Scanned by Forcepoint Email Security Gateway
Click here to report this email as spam