[Qemu-devel] [PATCH v2 0/2] 9pfs: fix vulnerability and build break

Greg Kurz posted 2 patches 7 years, 1 month ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/148878895545.4635.12311472774377490920.stgit@bahia
Test checkpatch passed
Test docker passed
hw/9pfs/9p-local.c |    2 +-
hw/9pfs/9p-util.h  |    8 +++++++-
2 files changed, 8 insertions(+), 2 deletions(-)
[Qemu-devel] [PATCH v2 0/2] 9pfs: fix vulnerability and build break
Posted by Greg Kurz 7 years, 1 month ago
The "9pfs: fix vulnerability in openat_dir() and local_unlinkat_common()"
was sent to add the missing O_NOFOLLOW flag and drop O_PATH, which causes
build breaks with older versions of glibc.

Eric Blake pointed out during review that O_PATH could be kept:

https://lists.nongnu.org/archive/html/qemu-devel/2017-03/msg00923.html

This v2 does that in a separate patch, to address the build break with
older glibc.

---

Greg Kurz (2):
      9pfs: fix O_PATH build break with older glibc versions
      9pfs: fix vulnerability in openat_dir() and local_unlinkat_common()


 hw/9pfs/9p-local.c |    2 +-
 hw/9pfs/9p-util.h  |    8 +++++++-
 2 files changed, 8 insertions(+), 2 deletions(-)

--
Greg