Enable checks on credential management
An XCCDF Rule
Description
Enable this to turn on some debug checking for credential management. The additional code keeps track of the number of pointers from task_structs to any given cred struct, and checks to see that this number never exceeds the usage count of the cred struct. Furthermore, if SELinux is enabled, this also checks that the security pointer in the cred struct is never seen to be invalid. The configuration that was used to build kernel is available at/boot/config-*
.
To check the configuration value for CONFIG_DEBUG_CREDENTIALS
, run the following command:
grep CONFIG_DEBUG_CREDENTIALS /boot/config-*
For each kernel installed, a line with value "y" should be returned.
warning alert: Warning
There is no remediation for this besides re-compiling the kernel with the appropriate value for the config.
Rationale
This adds sanity checks and validations to credential data structures.
- ID
- xccdf_org.ssgproject.content_rule_kernel_config_debug_credentials
- Severity
- Low
- References
- Updated