-
Notifications
You must be signed in to change notification settings - Fork 794
Better align ANSSI kickstarts to their hardening levels #6589
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,9 +6,6 @@ | |
| # https://pykickstart.readthedocs.io/en/latest/ | ||
| # http://usgcb.nist.gov/usgcb/content/configuration/workstation-ks.cfg | ||
|
|
||
| # Install a fresh new system (optional) | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What is the reaspon of removing this part? It stays in rhel7 kickstarts.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sorry, I should have mentioned that.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Having it doesn't cause any harm, but just a warning message.
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thank you for explanation. |
||
| install | ||
|
|
||
| # Specify installation method to use for installation | ||
| # To use a different one comment out the 'url' one below, update | ||
| # the selected choice with proper options & un-comment it | ||
|
|
@@ -52,7 +49,7 @@ keyboard us | |
| # "--bootproto=static" must be used. For example: | ||
| # 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 | ||
| # | ||
| network --onboot yes --bootproto dhcp | ||
| network --onboot yes --bootproto dhcp --noipv6 | ||
|
|
||
| # Set the system's root password (required) | ||
| # Plaintext password is: server | ||
|
|
@@ -71,16 +68,6 @@ user --name=admin --groups=wheel --password=$6$Ga6ZnIlytrWpuCzO$q0LqT1USHpahzUaf | |
| # --ssh allow sshd service through the firewall | ||
| firewall --enabled --ssh | ||
|
|
||
| # Set up the authentication options for the system (required) | ||
| # --enableshadow enable shadowed passwords by default | ||
| # --passalgo hash / crypt algorithm for new passwords | ||
| # See the manual page for authconfig for a complete list of possible options. | ||
| authconfig --enableshadow --passalgo=sha512 | ||
|
|
||
| # State of SELinux on the installed system (optional) | ||
| # Defaults to enforcing | ||
| selinux --enforcing | ||
|
|
||
| # Set the system time zone (required) | ||
| timezone --utc America/New_York | ||
|
|
||
|
|
@@ -89,7 +76,7 @@ timezone --utc America/New_York | |
| # Refer to e.g. | ||
| # https://pykickstart.readthedocs.io/en/latest/commands.html#rootpw | ||
| # to see how to create encrypted password form for different plaintext password | ||
| bootloader --location=mbr --append="audit=1 audit_backlog_limit=8192 slub_debug=P page_poison=1 vsyscall=none" --password=$6$zCPaBARiNlBYUAS7$40phthWpqvaPVz3QUeIK6n5qoazJDJD5Nlc9OKy5SyYoX9Rt4jFaLjzqJCwpgR4RVAEFSADsqQot0WKs5qNto0 | ||
| bootloader --location=mbr --append="audit=1 audit_backlog_limit=8192" --password=$6$zCPaBARiNlBYUAS7$40phthWpqvaPVz3QUeIK6n5qoazJDJD5Nlc9OKy5SyYoX9Rt4jFaLjzqJCwpgR4RVAEFSADsqQot0WKs5qNto0 | ||
|
|
||
| # Initialize (format) all disks (optional) | ||
| zerombr | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can see that you are not adding any boot parameter associated with audit here. Why not here and in High and Enhanced profile yes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Logging activity with audit is part of R50, which is part of Enhanced Level.