Race Condition

看到 惡搞 DISPLAY (for screen) 這篇的 Shell Script:

echo $DISPLAY > /tmp/display
chmod 600 /tmp/display

我第一個想到的是 Race Condition,再來想到的是用 symbolic link 破壞 XD

This entry was posted in Computer, Murmuring, Programming, Security, Software. Bookmark the permalink.

One Response to Race Condition

  1. Victor says:

    想太少了啊 XD
    先改用先設 umask 再 touch 還有跟換檔案解決 @@

Leave a Reply

Your email address will not be published. Required fields are marked *