-
Notifications
You must be signed in to change notification settings - Fork 739
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't modify /etc/sysctl.conf #343
Comments
I am not sure how to handle this feature request/bug in the role since the role also enforce permissions on /etc/sysctl.conf file. I suppose we must enforce the permissions on both /etc/sysctl.conf and the alternative file, right? |
Thanks for raising this!
Is this an assumption or did you notice this anywhere? I'd like to reproduce this. |
No maybe I am mistaken. In the past I had some problems with Arch Linux, that's why I am now reluctant to modify the files that are provided by a package. I know there's a dpkg-divert tool which relocates the package-provided files but I have never really tested what happens during updates. The conf.d approach tend to be generalized to all packages, I suppose there's a good reason for that, but I am pretty much ignorant in this respect :) |
In rhel-OS'es |
Describe the bug
/etc/sysctl.conf
is probably overwritten when theprocps
package is updated, which would break the security, so this role should not modify/etc/sysctl.conf
.Expected behavior
The sysctl parameters should be defined in a specific file in
/etc/sysctl.d
Actual behavior
The sysctl parameters are defined in
/etc/sysctl.conf
Example Playbook
OS / Environment
Ubuntu 20.04
Linux nas-test 5.4.0-42-generic #46-Ubuntu SMP Fri Jul 10 00:24:02 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Ansible Version
Role Version
Additional context
I suggest making the
sysctl.d
file name/path configurable so that we can put our overrides in another file with a higher priority.The text was updated successfully, but these errors were encountered: