aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/qapi-commands.py
diff options
context:
space:
mode:
authorGreg Kurz <groug@kaod.org>2017-02-26 23:44:03 +0100
committerGreg Kurz <groug@kaod.org>2017-02-28 11:21:15 +0100
commitd2767edec582558f1e6c52e1dd9370d62e2b30fc (patch)
tree91e1171b715a8c2626a1351b68d8bcf6b2e69944 /scripts/qapi-commands.py
parent9pfs: local: renameat: don't follow symlinks (diff)
downloadqemu-d2767edec582558f1e6c52e1dd9370d62e2b30fc.tar.xz
qemu-d2767edec582558f1e6c52e1dd9370d62e2b30fc.zip
9pfs: local: rename: use renameat
The local_rename() callback is vulnerable to symlink attacks because it uses rename() which follows symbolic links in all path elements but the rightmost one. This patch simply transforms local_rename() into a wrapper around local_renameat() which is symlink-attack safe. This partly fixes CVE-2016-9602. Signed-off-by: Greg Kurz <groug@kaod.org> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'scripts/qapi-commands.py')
0 files changed, 0 insertions, 0 deletions