mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
Unfortunately glibc can read the overcommit sysctl from any thread. This has lead to us adding a patchwork of openat/read syscalls to our allow list when those threads don't necessarily need openat for their actual uses. Only the VMM and migration worker thread have a strict requirement for the openat syscall. The syscall was added to the other threads to deal with this glibc behaviour. As read() is itself harmless move it to the common syscalls, strip full openat() from all but the threads that need it and add limited, read only, openat to all threads. Signed-off-by: Rob Bradford <rbradford@meta.com>