Page MenuHomeFreeBSD

nfs_commonsubs.c: Add a sanity check for nid_ngroup
ClosedPublic

Authored by rmacklem on Tue, Oct 28, 12:29 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Oct 30, 9:17 AM
Unknown Object (File)
Thu, Oct 30, 9:17 AM
Unknown Object (File)
Thu, Oct 30, 9:17 AM
Unknown Object (File)
Thu, Oct 30, 12:46 AM
Unknown Object (File)
Tue, Oct 28, 5:30 PM
Unknown Object (File)
Tue, Oct 28, 5:24 PM
Unknown Object (File)
Tue, Oct 28, 5:20 PM
Unknown Object (File)
Tue, Oct 28, 5:20 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