[OpenAFS] Re: Changed behaviour (?) in client kernel module.

Andrew Deason adeason@sinenomine.net
Wed, 3 Dec 2014 11:51:40 -0600


On Tue, 02 Dec 2014 15:42:03 +0100
Anders Magnusson <ragge@ltu.se> wrote:

> Hm, no setresuid() call before.  Actually nothing related to setting
> uid.  But using setuid() would prevent samba from changing users in
> the same connection, won't it?

No, it's still possible, but you have to manipulate the uids in certain
ways to be able to do that. A couple of examples showing how to
temporarily and permanently change your uid can be seen here:
<http://stackoverflow.com/a/8499703>.

I haven't looked at the samba code, but I assume what Marc was
referencing is the correct behavior (probably more clearly done with
setresuid), but is being avoided for some reason; so that's the part
that needs to be figured out.

-- 
Andrew Deason
adeason@sinenomine.net