-
Notifications
You must be signed in to change notification settings - Fork 710
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a rule that checks if support for kernel modules is disabled. If the system can function without support for kernel modules, the support for them should be disabled. Include the rule to ANSSI R23 as a related rule.
- Loading branch information
Showing
4 changed files
with
38 additions
and
3 deletions.
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
34 changes: 34 additions & 0 deletions
34
linux_os/guide/system/kernel_build_config/kernel_config_modules/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,34 @@ | ||
documentation_complete: true | ||
|
||
title: Disable Support for Kernel Modules | ||
|
||
description: |- | ||
Kernel modules are small pieces of compiled code which can be inserted in the running kernel, rather than being permanently built into the kernel. | ||
If module support isn't neccessary, it must be disabled. | ||
{{{ describe_kernel_build_config("CONFIG_MODULES", "n") | indent(4) }}} | ||
rationale: |- | ||
Disabling support for kernel modules will prevent loading unwanted modules. | ||
warnings: | ||
{{{ warning_kernel_build_config() | indent(4) }}} | ||
|
||
severity: low | ||
|
||
identifiers: | ||
cce@rhel7: CCE-86302-7 | ||
cce@rhel8: CCE-86303-5 | ||
cce@rhel9: CCE-86304-3 | ||
|
||
ocil_clause: 'the kernel was not built with the required value' | ||
|
||
ocil: |- | ||
{{{ ocil_kernel_build_config("CONFIG_MODULES", "n") | indent(4) }}} | ||
template: | ||
name: kernel_build_config | ||
vars: | ||
config: CONFIG_MODULES | ||
value: 'n' | ||
|
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