-
Notifications
You must be signed in to change notification settings - Fork 898
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 brakeman warning about possible command injection #20130
fix brakeman warning about possible command injection #20130
Conversation
@miq-bot add_label security |
@d-m-u Cannot apply the following label because they are not recognized:
All labels for |
phooey |
Would |
I agree with @chessbyte but I'm not sure why we are shelling out at all, when the Process class should do this for us: Process.kill("WINCH", pid) |
7037b1c
to
14dab93
Compare
Checked commit d-m-u@14dab93 with ruby 2.5.7, rubocop 0.69.0, haml-lint 0.28.0, and yamllint |
Not sure we have specs on this. @carbonin can you review? |
@@ -52,7 +52,7 @@ def self.start | |||
def self.stop | |||
if ENV["CONTAINER"] | |||
pid = `pgrep -P 1 httpd`.chomp.to_i | |||
system("kill -WINCH #{pid}") if pid > 0 | |||
Process.kill("WINCH", pid) if pid > 0 |
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.
👍
fix brakeman warning about possible command injection (cherry picked from commit 34bfb38)
Jansa backport details:
|
This line's in our brakeman ignore right now because we were supposed to get back to it later.