wayland-shm: Don’t set SIGBUS handlers on unshrinkable fd
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>
Mon, 22 Jul 2019 13:58:49 +0000 (15:58 +0200)
committerSimon Ser <contact@emersion.fr>
Mon, 14 Oct 2019 21:49:08 +0000 (21:49 +0000)
commit11623e8fddb924c7ae317f2eabac23785ae5e8d5
treeeaf2c002b03ebe560d1a3b93bdfe2795e79b3d37
parentd5055ad913f4913c1bb1c17cef55049e30c191ad
wayland-shm: Don’t set SIGBUS handlers on unshrinkable fd

If a client set the F_SEAL_SHRINK seal on the fd before passing it to
the compositor, the kernel will ensure this fd won’t be able to shrink,
ever.  This allows us to avoid setting up the SIGBUS handlers on such
file descriptors.

Signed-off-by: Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
src/wayland-shm.c