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
Unknown Object (File)
Mon, Feb 23, 9:31 PM
Unknown Object (File)
Sat, Feb 21, 6:27 AM
Unknown Object (File)
Sun, Feb 8, 11:28 AM
Unknown Object (File)
Sat, Feb 7, 7:07 PM
Unknown Object (File)
Sat, Jan 31, 11:21 AM
Unknown Object (File)
Jan 23 2026, 3:09 PM
Unknown Object (File)
Nov 25 2025, 8:21 PM
Unknown Object (File)
Nov 22 2025, 9:10 PM
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