klibc: Add minimal Unix authentication support to the spoofing portmapper

Add minimal Unix authentication support to the spoofing portmapper

The spoofing portmapper assumes that the kernel will only use NULL
authentication to register lockd. However this assumption is false at least
since Linux 2.6.12, and the kernel now uses UNIX authentication with uid=0,
gid=0, and a NULL verifier.

This patch adds minimal support for UNIX authentication to the spoofing
portmapper, so that latest Linux kernels can register their lockd service.

Thanks to this patch it is now possible again to mount an NFS root with locking
using nfsmount.

Signed-off-by: Louis Rilling <Louis.Rilling@kerlabs.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2 files changed