Bug 508958

Summary: FreeBSD: add getgroups and setgroups wrappers
Product: [Developer tools] valgrind Reporter: Paul Floyd <pjfloyd>
Component: generalAssignee: Paul Floyd <pjfloyd>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: FreeBSD   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Paul Floyd 2025-08-31 08:57:22 UTC
Don't look complicated

595	AUE_GETGROUPS	STD|CAPENABLED {
		int getgroups(
		    int gidsetsize,
		    _Out_writes_opt_(gidsetsize) gid_t *gidset
		);
	}
596	AUE_SETGROUPS	STD {
		int setgroups(
		    int gidsetsize,
		    _In_reads_(gidsetsize) const gid_t *gidset
		);
	}
Comment 1 Paul Floyd 2025-08-31 10:02:55 UTC
Even easier, the new syscall has just a semantic change. It uses exactly the same interface as the existing generic wrapper.
Comment 2 Paul Floyd 2025-08-31 14:43:33 UTC
commit 128017143a942263542a1d87132f3bae782ce645
Author: Paul Floyd <pjfloyd@wanadoo.fr>
Date:   Sun Aug 31 16:32:20 2025 +0200

    Bug 508958 - FreeBSD: add getgroups and setgroups wrappers