*BSD News Article 33474


Return to BSD News archive

Newsgroups: comp.os.386bsd.bugs
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!bunyip.cc.uq.oz.au!munnari.oz.au!spool.mu.edu!agate!darkstar.UCSC.EDU!news.hal.COM!olivea!uunet!nwnexus!deanstoy!dean
From: dean@deanstoy.wa.com (Dean M. Phillips)
Subject: Unexpected (mis?)features of RPC, connect(), mount & setgroups()
Organization: None whatsoever!
Date: Sat, 30 Jul 1994 03:46:47 GMT
Message-ID: <CtqIIJ.156@deanstoy.wa.com>
Lines: 15

In porting cfs to FreeBSD 1.1R I (and others) found out that the
user-issued RPCs don't set the AUTH_UNIX credential type, but the NFS
client code does.  The effect is that the RPCs run as uid -1.

Also, The connect() call does not use privileged ports when invoked by root
and the mount command lacks a port option.

In working on deslogind, I found that the setgroups() call has the
undocumented side effect of setting the egid to the first group in the
list.  Also, why does the user's base gid have to appear in the list of
supplemental gid's?

Thanks in advance for any patches, pointers, or explainations.
-- 
Dean M. Phillips    Microsoft free and proud of it!    dean@deanstoy.wa.com