Bug 504265 - FreeBSD: missing syscall wrappers for fchroot and setcred
Summary: FreeBSD: missing syscall wrappers for fchroot and setcred
Status: RESOLVED FIXED
Alias: None
Product: valgrind
Classification: Developer tools
Component: general (other bugs)
Version First Reported In: 3.25 GIT
Platform: Compiled Sources FreeBSD
: NOR normal
Target Milestone: ---
Assignee: Paul Floyd
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-05-15 13:39 UTC by Paul Floyd
Modified: 2025-05-16 06:07 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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