diff --git a/shm.c b/shm.c index a222175a..29dd7672 100644 --- a/shm.c +++ b/shm.c @@ -443,10 +443,10 @@ get_new_buffers(struct buffer_chain *chain, size_t count, } #if defined(MEMFD_CREATE) - /* Seal file - we no longer allow any kind of resizing */ + /* Seal file - we no longer allow shrinking */ /* TODO: wayland mmaps(PROT_WRITE), for some unknown reason, hence we cannot use F_SEAL_FUTURE_WRITE */ if (fcntl(pool_fd, F_ADD_SEALS, - F_SEAL_GROW | F_SEAL_SHRINK | /*F_SEAL_FUTURE_WRITE |*/ F_SEAL_SEAL) < 0) + F_SEAL_SHRINK | /*F_SEAL_FUTURE_WRITE |*/ F_SEAL_SEAL) < 0) { LOG_ERRNO("failed to seal SHM backing memory file"); /* This is not a fatal error */