summaryrefslogtreecommitdiff
path: root/hw/xnest/Keyboard.c
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu.herrb@laas.fr>2011-10-17 22:27:35 +0200
committerJulien Cristau <jcristau@debian.org>2011-10-29 19:09:07 +0200
commite9ffc3a5f9414cdc4c3e5b8bf25fefe4f01cf725 (patch)
tree2fae4c9c7ac5b368675f86b2429c6aa9a6053332 /hw/xnest/Keyboard.c
parent1fec281b0daa21f39e98855872e35fbaeb5ec0bb (diff)
Fix CVE-2011-4029: File permission change vulnerability.server-1.9-branch
Use fchmod() to change permissions of the lock file instead of chmod(), thus avoid the race that can be exploited to set a symbolic link to any file or directory in the system. Signed-off-by: Matthieu Herrb <matthieu.herrb@laas.fr> Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com> (cherry picked from commit b67581cf825940fdf52bf2e0af4330e695d724a4)
Diffstat (limited to 'hw/xnest/Keyboard.c')
0 files changed, 0 insertions, 0 deletions