-
Notifications
You must be signed in to change notification settings - Fork 608
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
fix: accept sysctl/sysfs paths with dots #7879
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks, for fixing it, it looks like the standard approach is to use first /
to make it treat dots as literal dots:
I can fix it up
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed it up to comply with sysctl
utility handling, but same idea
/ok-to-test |
Yes, thank you! This is safer because it mitigates path-traversal. Something only thought of later. |
actually path traversal was (and still is) a problem... not a security issue per se, as it's part of the machine config, but nice to avoid |
I added |
Fixes #7878 Signed-off-by: Nico Berlee <[email protected]> Signed-off-by: Andrey Smirnov <[email protected]>
/m |
fixes: #7878
Pull Request
What? (description)
Why? (reasoning)
Acceptance
Please use the following checklist:
make conformance
)make fmt
)make lint
)make docs
)make unit-tests
)