Page MenuHomeFreeBSD

nfs_commonsubs.c: Add a sanity check for nid_ngroup
ClosedPublic

Authored by rmacklem on Oct 28 2025, 12:29 AM.
Tags
None
Referenced Files
F146533088: D53389.id165214.diff
Tue, Mar 3, 10:51 AM
Unknown Object (File)
Mon, Mar 2, 8:34 PM
Unknown Object (File)
Mon, Mar 2, 8:32 PM
Unknown Object (File)
Mon, Mar 2, 8:32 PM
Unknown Object (File)
Sun, Mar 1, 7:19 PM
Unknown Object (File)
Sat, Feb 28, 4:30 PM
Unknown Object (File)
Sat, Feb 28, 12:07 PM
Unknown Object (File)
Sat, Feb 28, 2:14 AM
Subscribers

Details

Summary

The nfsuserd(8) daemon passes user credentials
(uid + gids) into the kernel for users and groups
identified by name (received from a NFSv4 server).

This patch add a sanity check for the number of
groups (nid_ngroup) passed in.

It's only purpose is to protect against a bogus
nfsuserd(8) running in a jail.

Test Plan

Only tested for a valid working nfsuserd(8) daemon.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable