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
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