mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
common_thread_rules() holds the syscalls every thread needs for the SIGSYS violation handler added in #8449: the handler prints a diagnostic to stderr (write()) after identifying the offending thread (gettid()). #8449 added gettid() to common_thread_rules() but left the per-thread copies in place (9 rule sets still list it, 2 do not). write() is likewise listed unconditionally in every thread's rule set. Add write() to common_thread_rules() and drop the per-thread duplicates of both gettid() and write(). Every thread already allowed both, so there is no change in behaviour. write() suggested by @phip1611 in #8490. Signed-off-by: Henry Hrvoje Tonkovac <htonkovac@gmail.com> Assisted-by: Claude:Opus-4.8