-
Notifications
You must be signed in to change notification settings - Fork 696
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new rule file_sshd_50_redhat_exists
- Loading branch information
Showing
3 changed files
with
31 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
linux_os/guide/services/ssh/file_sshd_50_redhat_exists/rule.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
documentation_complete: true | ||
|
||
title: 'The File /etc/ssh/sshd_config.d/50-redhat.conf Must Exist' | ||
|
||
description: |- | ||
The <tt>/etc/ssh/sshd_config.d/50-redhat.conf</tt> file must exist as it contains important | ||
settings to secure SSH. | ||
rationale: |- | ||
The file must exist to configure SSH correctly. | ||
severity: medium | ||
|
||
warnings: | ||
- general: | ||
There is no remediation available for this rule since this file | ||
needs to have the correct content for the given system. | ||
|
||
|
||
template: | ||
name: 'file_existence' | ||
vars: | ||
filepath: '/etc/ssh/sshd_config.d/50-redhat.conf' | ||
exists: true | ||
backends: | ||
ansible: off | ||
bash: off |