sysctl: add glob syntax to sysctl.d files

System Internals / systemd - Zbigniew Jędrzejewski-Szmek [in.waw.pl] - 3 February 2020 23:01 EST

This is intended for net.*.conf.*.foo files. Setting just "default" is not very useful because any interfaces present before systemd-sysctl is invoked are not affected. Setting "all" is too harsh, because the kernel takes the stronger of the device-specific setting and the "all" value, so effectively having a weaker setting for specific interfaces is not possible. Let's add a way in which can set "default" first and then all the others without "all".

e0f424790d sysctl: add glob syntax to sysctl.d files
man/sysctl.d.xml | 58 ++++++++++++------
src/sysctl/sysctl.c | 168 ++++++++++++++++++++++++++++++++++++----------------
2 files changed, 156 insertions(+), 70 deletions(-)

Upstream: github.com


  • Share