Closed rhyven closed 8 years ago
Due to the ongoing work to allow multiple profiles, this behavior is to be expected. We have to come up with a good implementation for this kind of keys. After all, we want to propose default keys to check, but rather avoid people changing the default.prf file from now on. One possibility could be the usage of an external database (db directory), and store these values there.
Agreed! I expected it, because the functionality is so new -- but I figured I'd log it as an issue, because it's definitely something we need to fix.
A db directory sounds like a lot of work. I'm not familiar enough with how bash does things -- I'll have a think on it, and see if I can come up a fix.
There is already a db directory. We could simply make a file with the keys, and the preferred values. The challenge is that it should be flexible enough for people to change (without being overwritten), or the possibility to create their own data set.
Ha, there it is. I hadn't noticed it before
The related test (KRNL-6000) has been rewritten, so has the format of items in the profile. This way they can be used in multiple profiles. Order of preference: 1) personal profiles, 2) custom.prf, 3) default.prf. So by defining them in your personal or custom.prf, will define what value will be checked.
Can you test if it works for you?
Hi @rhyven, do you have a few minutes to test if things work for you with the new method?
Hey @mboelen, long time no see ;-) Absolutely, I'll aim to test it out in the next 24 hours.
10/10. Rewritten test seems to work perfectly. Thanks! I'll close the issue :)
When a kernel value exists in both default.prf and custom.prf, they're both evaluated:
custom.prf:
sysctl:net.ipv4.tcp_timestamps:1:1:Enable TCP timestamps:
default.prf:sysctl:net.ipv4.tcp_timestamps:0:1:Do not use TCP time stamps:
Results in: