{"description": "To set the runtime status of the <code>kernel.core_uses_pid</code> kernel parameter, run the following command: <pre>$ sudo sysctl -w kernel.core_uses_pid=0</pre>\nTo make sure that the setting is persistent, add the following line to a file in the directory <tt>/etc/sysctl.d</tt>: <pre>kernel.core_uses_pid = 0</pre>", "rationale": "The default coredump filename is <tt>core</tt>. By setting\n<tt>core_uses_pid</tt> to <tt>1</tt>, the coredump filename becomes\n<tt>core.PID</tt>. If <tt>core_pattern</tt> does not include\n<tt>%p</tt> (default does not) and <tt>core_uses_pid</tt> is set, then\n<tt>.PID</tt> will be appended to the filename.\nWhen combined with <tt>kernel.core_pattern = \"\"</tt> configuration, it\nis ensured that no core dumps are generated and also no confusing error\nmessages are printed by a shell.", "severity": "medium", "references": {"ospp": ["FMT_SMF_EXT.1"]}, "control_references": {}, "components": [], "identifiers": {}, "ocil_clause": "the returned line does not have a value of 0", "ocil": "The runtime status of the <code>kernel.core_uses_pid</code> kernel parameter can be queried\nby running the following command:\n<pre>$ sysctl kernel.core_uses_pid</pre>\n<code>0</code>.", "oval_external_content": null, "fixtext": "", "checktext": "", "vuldiscussion": "", "srg_requirement": "", "warnings": [], "conflicts": [], "requires": [], "policy_specific_content": {}, "platform": "system_with_kernel", "platforms": ["system_with_kernel"], "sce_metadata": {"check-import": "stdout", "platform": ["multi_platform_all"], "environment": "any", "filename": "sysctl_kernel_core_uses_pid.sh", "relative_path": "ubuntu2204/checks/sce/sysctl_kernel_core_uses_pid.sh"}, "inherited_platforms": [], "cpe_platform_names": ["system_with_kernel"], "inherited_cpe_platform_names": [], "bash_conditional": null, "fixes": {}, "title": "Configure file name of core dumps", "definition_location": "/aptdata/openscap/scap-security-guide/linux_os/guide/system/permissions/restrictions/sysctl_kernel_core_uses_pid/rule.yml", "template": {"name": "sysctl", "vars": {"sysctlvar": "kernel.core_uses_pid", "datatype": "int", "sysctlval": "0"}, "backends": {}}}