Merge from 3_0:
authorVolker Lendecke <vlendec@samba.org>
Thu, 23 Oct 2003 16:51:08 +0000 (16:51 +0000)
committerVolker Lendecke <vlendec@samba.org>
Thu, 23 Oct 2003 16:51:08 +0000 (16:51 +0000)
commit8a75e2dfb6ee9099e7f9a970c522e71ab144d919
tree315c822f2d82c4b90f09252f6c14b2f5a6fe6200
parent32aa749bf1328e43af629ade30b3fdc11dd5e3ec
Merge from 3_0:

After a phonecall with jra finally commit this.

This changes our behaviour when the setresuid call is available. We now not
only change the effective uid but also the real uid when becoming
unprivileged. This is mainly for improved AFS compatibility, as AFS selects
the token to send to the server based on the real uid of the process.

I tested this with a W2k server with two non-root 'runas' sessions. They come
in via a single smbd as two different users using two session setups. Samba on
Linux can still switch between the two uids, proved by two different files
created via those sessions.

Volker
source/lib/afs.c
source/lib/util_sec.c