Disable storing core dumps.#4650
Conversation
|
Technically the coredump.conf is an ini file, not a plain config file. However, there is only one section, Is that a problem? |
ggbecker
left a comment
There was a problem hiding this comment.
Hi @adelton, thanks for the patch. I have a few requests:
1 - The rule id for the rules you've created need to reflect the meaning of the configuration. I suggest to change coredump_processsizemax_0 to something like coredump_disable_backtraces, same situation with coredump_storage_none -> coredump_disable_storage.
2 - Regarding the ini configuration file, I've made some inline comments. But overall is ok to leave like that because we still don't support ini configuration files in the newly introduced macros/functions. But I'd like to ask @yuumasato if this is ok.
3 - Please add basic path test scenarios so the rules can be easily tested.
aa1c164 to
4cf02c2
Compare
|
I've renamed the rules, added the |
There was a problem hiding this comment.
I think we should treat it like an ini file, and mention correct section in rule.yml
By default /etc/systemd/coredump.conf already exists and [Coredump] section is there.
For this rules, we can state that the supported use case is remediation from default installation state, and remediation when file doesn't exist or doesn't have [Coredump] section is unsupported.
I suggest adding a general warning in the rule.yml, describing supported use case.
For the remediation, I suggest that they don't create the file, and add to end of file.
The ocil text should help remediate manually, so I think the correct section should be listed there as well.
In order to illustrate the content/chromium/guide/chromium/chromium_policy_file/rule.yml Lines 20 to 24 in f7ca4ca |
|
I also suggest creating an issue to track that this rule needs to be updated to use |
4cf02c2 to
a0ad45d
Compare
|
I've now rebased on master and added |
|
Added an explicit commit to add the bits about |
|
Thanks for the changes. |
Description:
Rationale: