7 Jun
2023
7 Jun
'23
8:54 p.m.
Rémi Bernon (@rbernon) commented about dlls/winewayland.drv/wayland_surface.c:
+static int wayland_shmfd_create(int size) +{ + int ret; + int fd; + char name[64]; + + do + { + snprintf(name, sizeof(name), "/winewayland-shm-%d-%d", getpid(), rand()); + fd = shm_open(name, O_CREAT | O_EXCL | O_RDWR, 0600); + } while (fd < 0 && (errno == EINTR || errno == EEXIST)); + + if (fd < 0) return -1; + shm_unlink(name); + + fcntl(fd, F_ADD_SEALS, F_SEAL_SHRINK | F_SEAL_SEAL); Same comment with F_ADD_SEALS.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/2944#note_35025