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)
Tue, Nov 25, 8:21 PM
Unknown Object (File)
Sat, Nov 22, 9:10 PM
Unknown Object (File)
Sun, Nov 16, 9:32 PM
Unknown Object (File)
Thu, Nov 13, 8:31 PM
Unknown Object (File)
Sat, Nov 8, 3:23 PM
Unknown Object (File)
Fri, Nov 7, 5:57 PM
Unknown Object (File)
Oct 30 2025, 9:17 AM
Unknown Object (File)
Oct 30 2025, 9:17 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