简体   繁体   中英

Does Yum update running process?

I am running Fedora 20 on my desktop. When I saw the advisory about the vulnerability in bash, I checked my system out and turns out, it was vulnerable. Today, I updated my system and a new version of bash was installed. I was expecting to restart bash for the changes to take effect. But to my surprise, the update process somehow fixed running copy of bash.

How?

Log: shows 2 invocations of the same command. Between the two, upgraded the system from a different xterm window.

bash$ env x='() { :;}; echo vulnerable' bash -c "echo This is a test" vulnerable This is a test bash$ env x='() { :;}; echo vulnerable' bash -c "echo This is a test" bash: warning: x: ignoring function definition attempt bash: error importing function definition for `x'

If you split the command into two it's clearer:

env x='() { :;}; echo vulnerable'
bash -c "echo This is a test"

You're running a new instance of bash when checking for the bug, so it's using the updated code. You should make sure to restart all your shells to ensure that you're safe.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM