Skip to content
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

RHEL 8.3.0 failing selected rules #72

Open
ovlords opened this issue Jan 19, 2021 · 4 comments
Open

RHEL 8.3.0 failing selected rules #72

ovlords opened this issue Jan 19, 2021 · 4 comments

Comments

@ovlords
Copy link

ovlords commented Jan 19, 2021

RHEL 8.3.0 (from AWS AMI RHEL-8.3.0_HVM-20201031-x86_64-0-Hourly2-GP2 [ami-044c46b1952ad5861]) is failing the following rules:

secure_linux_cis::rules::ensure_nftables_is_not_enabled
secure_linux_cis::rules::ensure_ipv6_loopback_traffic_is_configured
secure_linux_cis::rules::ensure_nodev_option_set_on_tmp_partition
secure_linux_cis::rules::ensure_nosuid_option_set_on_tmp_partition
secure_linux_cis::rules::ensure_noexec_option_set_on_tmp_partition
secure_linux_cis::rules::ensure_mail_transfer_agent_is_configured_for_local_only_mode

Is this expected?

Your README has the following under Limitations: "RedHat family '8' OSes are not fully covered. Almost, but not quite."

@ovlords ovlords changed the title RHEL 8.3.0 failing the selected rules RHEL 8.3.0 failing selected rules Jan 19, 2021
@bjvrielink
Copy link
Collaborator

What kind of failures do you see? Can you provide the error messages?

@ovlords
Copy link
Author

ovlords commented Feb 8, 2021

Hi @bjvrielink,

Thanks for asking. Apologies for the late reply.

Here are the error messages I'm gettting and the rules which I believe relate to them:

<ensure_nftables_is_not_enabled>
Screen Shot 2021-02-08 at 10 58 59 am

<ensure_no****_option_set_on_tmp_partition>
Screen Shot 2021-02-08 at 10 59 17 am

<ensure_mail_transfer_agent_is_configured_for_local_only_mode>
Screen Shot 2021-02-08 at 11 01 31 am

@bjvrielink
Copy link
Collaborator

The nftables error is most likely because the nftables package is not installed (which should be fine). Puppet cannot mask a service that simply does not exist. We should work around this and make the service resource conditional depending on the presence of the nftables package.

I guess the tmp errors are because /tmp is not specified in /etc/fstab but instead as a systemd unit. Although the CIS guidelines only mention /etc/fstab in the remediation section, I do not think enforcing the use of /etc/fstab only is the way to go. I'm not sure how easy this would be to fix.

The Postfix error is because a bug in the Postfix Puppet module, see voxpupuli/puppet-postfix#261

@bjvrielink
Copy link
Collaborator

The postfix bug should be fixed in versions >= 1.10.0 of the Postfix module.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants