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, Jun 22, 2:44 AM
Unknown Object (File)
Sat, Jun 20, 6:37 AM
Unknown Object (File)
May 24 2026, 4:16 PM
Unknown Object (File)
May 20 2026, 11:35 AM
Unknown Object (File)
May 19 2026, 10:06 PM
Unknown Object (File)
May 17 2026, 4:26 AM
Unknown Object (File)
May 17 2026, 3:51 AM
Unknown Object (File)
May 17 2026, 3:51 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