[1390] in Athena Bugs

home help back first fref pref prev next nref lref last post

Re: Bug in setgid()

daemon@ATHENA.MIT.EDU (Ken Raeburn)
Fri Nov 18 22:10:53 1988

Date: Fri, 18 Nov 88 22:10:34 EST
From: Ken Raeburn <raeburn@ATHENA.MIT.EDU>
To: Chris D. Peterson <kit@ATHENA.MIT.EDU>
Cc: bugs@ATHENA.MIT.EDU
In-Reply-To: Chris D. Peterson's message of Fri, 18 Nov 88 17:40:56 EST,

A little experimentation (and a peek at the kernel sources) seems to
indicate that the more general case is that when you change the real
gid of a process, it removes you from the group with the old gid, and
adds you to the new one.  It appears that the intention is that the
real-gid should show up in the list of groups returned by getgroups.

(The comment in sys/user.h that the list of groups is 0-terminated
appears to be misleading.  It is actually terminated by NOGROUP,
65535.)

It'll take some staring at more code (login, access, groups) to find
the right way to fix this and make sure all bases are covered....

home help back first fref pref prev next nref lref last post