HomeFreeBSD

nfs_commonsubs.c: Add a sanity check for nid_ngroup

Description

nfs_commonsubs.c: Add a sanity check for nid_ngroup

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.

(cherry picked from commit 4672adcea4cf3c0c626d186f1f41c69552d915f1)

Details

Provenance
rmacklemAuthored on Tue, Oct 28, 2:44 PM
Parents
rG89fd2ff35c3f: uio.9: Improve description of uio_rw flags
Branches
Unknown
Tags
Unknown