1
0
mirror of https://github.com/termux/termux-packages synced 2024-06-19 08:17:20 +00:00
termux-packages/packages/qemu-system-x86-64-headless/0015-9pfs-dont-chmod-mapfile.patch
Leonid Pliushch 985407aa47
qemu: prevent possible crash when using security_model=mapped-file
When security_model=mapped-file is being used for VirtFS when accessing
shared storage or other file system that doesn't support chmod, an
assertion error may occur.
2021-08-22 18:35:29 +03:00

13 lines
413 B
Diff

diff -uNr qemu-5.2.0/hw/9pfs/9p-local.c qemu-5.2.0.mod/hw/9pfs/9p-local.c
--- qemu-5.2.0/hw/9pfs/9p-local.c 2020-12-08 18:59:44.000000000 +0200
+++ qemu-5.2.0.mod/hw/9pfs/9p-local.c 2021-08-07 17:01:43.567841976 +0300
@@ -299,8 +299,6 @@
map_fd = fileno(fp);
assert(map_fd != -1);
- ret = fchmod(map_fd, 0600);
- assert(ret == 0);
if (credp->fc_uid != -1) {
uid = credp->fc_uid;