Bug 504265

Summary: FreeBSD: missing syscall wrappers for fchroot and setcred
Product: [Developer tools] valgrind Reporter: Paul Floyd <pjfloyd>
Component: generalAssignee: Paul Floyd <pjfloyd>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: 3.25 GIT   
Target Milestone: ---   
Platform: Compiled Sources   
OS: FreeBSD   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Paul Floyd 2025-05-15 13:39:34 UTC
590	AUE_NULL	STD {
		int fchroot(
		    int fd
		);
	}
591	AUE_SETCRED	STD|CAPENABLED {
		int setcred(
		    u_int flags,
		    _In_reads_bytes_(size) _Contains_ptr_ const struct setcred *wcred,
		    size_t size
		);
	}

fchroot
Could factor this into a generic with Solaris

setcred
Need to add the wcred structure, otherwise should be easy
Comment 1 Paul Floyd 2025-05-16 06:07:10 UTC
commit 4f3f688a31ef1a213bd1a3a9e897e99cfe3950f6
Author: Paul Floyd <pjfloyd@wanadoo.fr>
Date:   Fri May 16 07:58:02 2025 +0200

    Bug 504265 - FreeBSD: missing syscall wrappers for fchroot and setcred