Commit fd8dbe0d authored by Daniel Black's avatar Daniel Black

MDEV-29443: prevent uring access to galera sst /notify scripts

The resources like uring in MariaDB aren't intended for spawned
processes so we restrict access using the io_uring_ring_dontfork
liburing library call.
parent 9fefd440
......@@ -63,6 +63,12 @@ class aio_uring final : public tpool::aio
}
throw std::runtime_error("aio_uring()");
}
if (io_uring_ring_dontfork(&uring_) != 0)
{
my_printf_error(ER_UNKNOWN_ERROR,
"io_uring_dontfork() failed with errno %d (continuing)",
ME_ERROR_LOG | ME_WARNING, errno);
}
thread_= std::thread(thread_routine, this);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment