From bc144f9a58782daa2399d417b56aad80e82a219e Mon Sep 17 00:00:00 2001 From: Greg Steuck Date: Tue, 9 Jul 2024 10:18:15 +0200 Subject: executor: only report unknown setsid errors Unlike linux the BSDs used to check the result of setsid. This suddenly became a problem a couple of weeks ago. It's hard to figure out why because there was a number of problems in the area preventing the test from working: gmake executor execprog && \ ./bin/openbsd_amd64/syz-execprog -stress -executor ./bin/openbsd_amd64/syz-executor At least with this change the test above successfully executes some coverage and exits cleanly. --- executor/common_openbsd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'executor') diff --git a/executor/common_openbsd.h b/executor/common_openbsd.h index 031aaf88a..8fcd092e9 100644 --- a/executor/common_openbsd.h +++ b/executor/common_openbsd.h @@ -299,7 +299,7 @@ static void sandbox_common() #if SYZ_EXECUTOR if (!flag_threaded) #endif - if (setsid() == -1) + if (setsid() == -1 && errno != EPERM) fail("setsid failed"); #endif -- cgit mrf-deployment