Blame SOURCES/remove-ANSSI-high-ks.patch

618a7c
From 8e43a6a6432a8cbeb5742771ddbd0856669a7878 Mon Sep 17 00:00:00 2001
618a7c
From: Watson Sato <wsato@redhat.com>
618a7c
Date: Wed, 17 Feb 2021 15:36:59 +0100
618a7c
Subject: [PATCH] Remove kickstart for profile not shipped
618a7c
618a7c
RHEL-8 ANSSI high is not shipped at the momment
618a7c
---
618a7c
 .../ssg-rhel8-anssi_bp28_high-ks.cfg          | 167 ------------------
618a7c
 1 file changed, 167 deletions(-)
618a7c
 delete mode 100644 rhel8/kickstart/ssg-rhel8-anssi_bp28_high-ks.cfg
618a7c
618a7c
diff --git a/rhel8/kickstart/ssg-rhel8-anssi_bp28_high-ks.cfg b/rhel8/kickstart/ssg-rhel8-anssi_bp28_high-ks.cfg
618a7c
deleted file mode 100644
618a7c
index b5c09253a..000000000
618a7c
--- a/rhel8/kickstart/ssg-rhel8-anssi_bp28_high-ks.cfg
618a7c
+++ /dev/null
618a7c
@@ -1,167 +0,0 @@
618a7c
-# SCAP Security Guide ANSSI BP-028 (high) profile kickstart for Red Hat Enterprise Linux 8
618a7c
-# Version: 0.0.1
618a7c
-# Date: 2020-12-10
618a7c
-#
618a7c
-# Based on:
618a7c
-# https://pykickstart.readthedocs.io/en/latest/
618a7c
-# http://usgcb.nist.gov/usgcb/content/configuration/workstation-ks.cfg
618a7c
-
618a7c
-# Specify installation method to use for installation
618a7c
-# To use a different one comment out the 'url' one below, update
618a7c
-# the selected choice with proper options & un-comment it
618a7c
-#
618a7c
-# Install from an installation tree on a remote server via FTP or HTTP:
618a7c
-# --url		the URL to install from
618a7c
-#
618a7c
-# Example:
618a7c
-#
618a7c
-# url --url=http://192.168.122.1/image
618a7c
-#
618a7c
-# Modify concrete URL in the above example appropriately to reflect the actual
618a7c
-# environment machine is to be installed in
618a7c
-#
618a7c
-# Other possible / supported installation methods:
618a7c
-# * install from the first CD-ROM/DVD drive on the system:
618a7c
-#
618a7c
-# cdrom
618a7c
-#
618a7c
-# * install from a directory of ISO images on a local drive:
618a7c
-#
618a7c
-# harddrive --partition=hdb2 --dir=/tmp/install-tree
618a7c
-#
618a7c
-# * install from provided NFS server:
618a7c
-#
618a7c
-# nfs --server=<hostname> --dir=<directory> [--opts=<nfs options>]
618a7c
-#
618a7c
-# Set language to use during installation and the default language to use on the installed system (required)
618a7c
-lang en_US.UTF-8
618a7c
-
618a7c
-# Set system keyboard type / layout (required)
618a7c
-keyboard us
618a7c
-
618a7c
-# Configure network information for target system and activate network devices in the installer environment (optional)
618a7c
-# --onboot	enable device at a boot time
618a7c
-# --device	device to be activated and / or configured with the network command
618a7c
-# --bootproto	method to obtain networking configuration for device (default dhcp)
618a7c
-# --noipv6	disable IPv6 on this device
618a7c
-#
618a7c
-# NOTE: Usage of DHCP will fail CCE-27021-5 (DISA FSO RHEL-06-000292). To use static IP configuration,
618a7c
-#       "--bootproto=static" must be used. For example:
618a7c
-# network --bootproto=static --ip=10.0.2.15 --netmask=255.255.255.0 --gateway=10.0.2.254 --nameserver 192.168.2.1,192.168.3.1
618a7c
-#
618a7c
-network --onboot yes --bootproto dhcp --noipv6
618a7c
-
618a7c
-# Set the system's root password (required)
618a7c
-# Plaintext password is: server
618a7c
-# Refer to e.g.
618a7c
-#   https://pykickstart.readthedocs.io/en/latest/commands.html#rootpw
618a7c
-# to see how to create encrypted password form for different plaintext password
618a7c
-rootpw --iscrypted $6$0WWGZ1e6icT$1KiHZK.Nzp3HQerfiy8Ic3pOeCWeIzA.zkQ7mkvYT3bNC5UeGK2ceE5b6TkSg4D/kiSudkT04QlSKknsrNE220
618a7c
-
618a7c
-# The selected profile will restrict root login
618a7c
-# Add a user that can login and escalate privileges
618a7c
-# Plaintext password is: admin123
618a7c
-user --name=admin --groups=wheel --password=$6$Ga6ZnIlytrWpuCzO$q0LqT1USHpahzUafQM9jyHCY9BiE5/ahXLNWUMiVQnFGblu0WWGZ1e6icTaCGO4GNgZNtspp1Let/qpM7FMVB0 --iscrypted
618a7c
-
618a7c
-# Configure firewall settings for the system (optional)
618a7c
-# --enabled	reject incoming connections that are not in response to outbound requests
618a7c
-# --ssh		allow sshd service through the firewall
618a7c
-firewall --enabled --ssh
618a7c
-
618a7c
-# State of SELinux on the installed system (optional)
618a7c
-# Defaults to enforcing
618a7c
-selinux --enforcing
618a7c
-
618a7c
-# Set the system time zone (required)
618a7c
-timezone --utc America/New_York
618a7c
-
618a7c
-# Specify how the bootloader should be installed (required)
618a7c
-# Plaintext password is: password
618a7c
-# Refer to e.g.
618a7c
-#   https://pykickstart.readthedocs.io/en/latest/commands.html#rootpw
618a7c
-# to see how to create encrypted password form for different plaintext password
618a7c
-bootloader --location=mbr --append="audit=1 audit_backlog_limit=8192" --password=$6$zCPaBARiNlBYUAS7$40phthWpqvaPVz3QUeIK6n5qoazJDJD5Nlc9OKy5SyYoX9Rt4jFaLjzqJCwpgR4RVAEFSADsqQot0WKs5qNto0
618a7c
-
618a7c
-# Initialize (format) all disks (optional)
618a7c
-zerombr
618a7c
-
618a7c
-# The following partition layout scheme assumes disk of size 20GB or larger
618a7c
-# Modify size of partitions appropriately to reflect actual machine's hardware
618a7c
-# 
618a7c
-# Remove Linux partitions from the system prior to creating new ones (optional)
618a7c
-# --linux	erase all Linux partitions
618a7c
-# --initlabel	initialize the disk label to the default based on the underlying architecture
618a7c
-clearpart --linux --initlabel
618a7c
-
618a7c
-# Create primary system partitions (required for installs)
618a7c
-part /boot --fstype=xfs --size=512 --fsoptions="nodev,nosuid,noexec"
618a7c
-part pv.01 --grow --size=1
618a7c
-
618a7c
-# Create a Logical Volume Management (LVM) group (optional)
618a7c
-volgroup VolGroup --pesize=4096 pv.01
618a7c
-
618a7c
-# Create particular logical volumes (optional)
618a7c
-logvol / --fstype=xfs --name=LogVol06 --vgname=VolGroup --size=3192 --grow
618a7c
-# Ensure /usr Located On Separate Partition
618a7c
-logvol /usr --fstype=xfs --name=LogVol08 --vgname=VolGroup --size=5000 --fsoptions="nodev"
618a7c
-# Ensure /opt Located On Separate Partition
618a7c
-logvol /opt --fstype=xfs --name=LogVol09 --vgname=VolGroup --size=1024 --fsoptions="nodev,nosuid"
618a7c
-# Ensure /srv Located On Separate Partition
618a7c
-logvol /srv --fstype=xfs --name=LogVol10 --vgname=VolGroup --size=1024 --fsoptions="nodev,nosuid"
618a7c
-# Ensure /home Located On Separate Partition
618a7c
-logvol /home --fstype=xfs --name=home --vgname=VolGroup --size=1024 --fsoptions="nodev"
618a7c
-# Ensure /tmp Located On Separate Partition
618a7c
-logvol /tmp --fstype=xfs --name=tmp --vgname=VolGroup --size=1024 --fsoptions="nodev,nosuid,noexec"
618a7c
-# Ensure /var/tmp Located On Separate Partition
618a7c
-logvol /var/tmp --fstype=xfs --name=vartmp --vgname=VolGroup --size=1024 --fsoptions="nodev,nosuid,noexec"
618a7c
-# Ensure /var Located On Separate Partition
618a7c
-logvol /var --fstype=xfs --name=var --vgname=VolGroup --size=3072 --fsoptions="nodev"
618a7c
-# Ensure /var/log Located On Separate Partition
618a7c
-logvol /var/log --fstype=xfs --name=log --vgname=VolGroup --size=1024 --fsoptions="nodev,nosuid,noexec"
618a7c
-# Ensure /var/log/audit Located On Separate Partition
618a7c
-logvol /var/log/audit --fstype=xfs --name=audit --vgname=VolGroup --size=512 --fsoptions="nodev,nosuid,noexec"
618a7c
-logvol swap --name=swap --vgname=VolGroup --size=2016
618a7c
-
618a7c
-# The OpenSCAP installer add-on is used to apply SCAP (Security Content Automation Protocol)
618a7c
-# content - security policies - on the installed system.This add-on has been enabled by default
618a7c
-# since Red Hat Enterprise Linux 7.2. When enabled, the packages necessary to provide this 
618a7c
-# functionality will automatically be installed. However, by default, no policies are enforced,
618a7c
-# meaning that no checks are performed during or after installation unless specifically configured.
618a7c
-#  
618a7c
-#  Important
618a7c
-#   Applying a security policy is not necessary on all systems. This screen should only be used
618a7c
-#   when a specific policy is mandated by your organization rules or government regulations.
618a7c
-#   Unlike most other commands, this add-on does not accept regular options, but uses key-value
618a7c
-#   pairs in the body of the %addon definition instead. These pairs are whitespace-agnostic.
618a7c
-#   Values can be optionally enclosed in single quotes (') or double quotes (").
618a7c
-#   
618a7c
-#  The following keys are recognized by the add-on:
618a7c
-#    content-type - Type of the security content. Possible values are datastream, archive, rpm, and scap-security-guide.
618a7c
-#      - If the content-type is scap-security-guide, the add-on will use content provided by the
618a7c
-#        scap-security-guide package, which is present on the boot media. This means that all other keys except profile will have no effect.
618a7c
-#    content-url - Location of the security content. The content must be accessible using HTTP, HTTPS, or FTP; local storage is currently not supported. A network connection must be available to reach content definitions in a remote location.
618a7c
-#    datastream-id - ID of the data stream referenced in the content-url value. Used only if content-type is datastream.
618a7c
-#    xccdf-id - ID of the benchmark you want to use.
618a7c
-#    xccdf-path - Path to the XCCDF file which should be used; given as a relative path in the archive.
618a7c
-#    profile - ID of the profile to be applied. Use default to apply the default profile.
618a7c
-#    fingerprint - A MD5, SHA1 or SHA2 checksum of the content referenced by content-url.
618a7c
-#    tailoring-path - Path to a tailoring file which should be used, given as a relative path in the archive.
618a7c
-#
618a7c
-#  The following is an example %addon org_fedora_oscap section which uses content from the
618a7c
-#  scap-security-guide on the installation media: 
618a7c
-%addon org_fedora_oscap
618a7c
-	content-type = scap-security-guide
618a7c
-	profile = xccdf_org.ssgproject.content_profile_anssi_bp28_high
618a7c
-%end
618a7c
-
618a7c
-# Packages selection (%packages section is required)
618a7c
-%packages
618a7c
-
618a7c
-# Require @Base
618a7c
-@Base
618a7c
-
618a7c
-%end # End of %packages section
618a7c
-
618a7c
-# Reboot after the installation is complete (optional)
618a7c
-# --eject	attempt to eject CD or DVD media before rebooting
618a7c
-reboot --eject
618a7c
-- 
618a7c
2.26.2
618a7c