Skip to content
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

Support glob patterns while preloading #10

Open
orhun opened this issue Apr 16, 2022 · 0 comments
Open

Support glob patterns while preloading #10

orhun opened this issue Apr 16, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@orhun
Copy link
Owner

orhun commented Apr 16, 2022

Is your feature request related to a problem? Please describe.
According to sysctl.d(5), following configuration entry should be supported:

key.pattern.*.with.glob = whatever

Describe the solution you'd like
Implement the functionality with using the globwalk or regex crate.

Describe alternatives you've considered
-

Additional context
In my tests, sysctl does not work properly as well while preloading the following configuration:

# contents of sysctl.conf
net.ipv4.conf.*.rp_filter = 2
$ sysctl -p sysctl.conf
sysctl: cannot stat /proc/sys/net/ipv4/conf/*/rp_filter: No such file or directory

$ systeroid -p sysctl.conf
systeroid: cannot stat /proc/sys/net/ipv4/conf/*/rp_filter: No such file or directory
systeroid: ambiguous parameter name: net.ipv4.conf.*.rp_filter
@orhun orhun added bug Something isn't working enhancement New feature or request labels Apr 16, 2022
@orhun orhun self-assigned this Apr 16, 2022
@orhun orhun removed the bug Something isn't working label Apr 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant