Greg Kurz b003fc0d8a 9pfs: fix vulnerability in openat_dir() and local_unlinkat_common()
We should pass O_NOFOLLOW otherwise openat() will follow symlinks and make
QEMU vulnerable.

While here, we also fix local_unlinkat_common() to use openat_dir() for
the same reasons (it was a leftover in the original patchset actually).

This fixes CVE-2016-9602.

Signed-off-by: Greg Kurz <groug@kaod.org>
Reviewed-by: Daniel P. Berrange <berrange@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
2017-03-06 17:34:01 +01:00
..
2017-03-03 10:09:03 +00:00
2016-10-04 13:28:07 +01:00
2017-01-27 18:08:00 +01:00
2017-03-02 17:39:12 +00:00
2017-02-28 16:22:41 +00:00
2017-01-20 11:15:06 +00:00
2017-03-03 10:09:03 +00:00
2017-02-28 20:40:36 +01:00
2017-02-02 16:08:28 +00:00
2016-05-18 15:04:27 +03:00
2017-02-06 12:33:21 +11:00
2017-01-27 18:07:59 +01:00
2017-02-24 10:37:21 +00:00
2017-02-28 20:40:36 +01:00
2017-02-02 18:48:06 +00:00
2017-02-24 10:13:57 +00:00
2016-01-29 15:07:25 +00:00
2017-03-06 13:06:30 +00:00
2017-02-28 12:04:48 +01:00
2017-02-28 20:40:36 +01:00
2017-03-01 23:09:46 +00:00
2017-02-28 16:18:49 +00:00
2016-10-28 18:17:24 +03:00
2016-09-15 15:32:22 +03:00
2017-03-02 17:39:12 +00:00
2017-02-03 12:31:40 +00:00