From: "Theo de Raadt" Subject: Re: patch: relax ni_pledge panic To: Sebastien Marie Cc: tech@openbsd.org Date: Thu, 06 Feb 2025 09:17:52 -0700 > [2] in another thread, pledge("stdio rpath wpath"), and returns. > the process is now pledged. How can this be allowed? I am pretty sure sys_pledge should single-thread the process, which means it will wait until other threads complete their in-kernel sleeps. Obviously not all pledge-variable checks occur before the first in-kernel sleep of other system calls.