Shouldn't set[re]gid look at the group list?

Matthias Urlichs (smurf@noris.de)
22 Sep 1998 10:05:01 +0200


I just noticed that setregid() fails for groups which you are a member of,
but which are not the current group. That is, if id(1) reports
uid=202(urlichs) gid=90(one) groups=90(one),5(two)
then setregid(5,5) fails with EPERM.

I wonder if that behavior is mandated by any standards.
Otherwise, IMHO this restriction should be removed.
(Same for setfsgid().)

-- 
Matthias Urlichs      |        noris network GmbH      |       smurf@noris.de
The quote was selected randomly. Really.    |      http://www.noris.de/~smurf/
-- 
If the automobile had followed the same development cycle as the
computer, a Rolls-Royce would today cost $100, get a million miles per
gallon, and explode once a year, killing everyone inside.
                -- Robert X. Cringely, InfoWorld

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/