uwrap: Reflect changes of uid/gid in threads to main process.
authorRobin Hack <hack.robin@gmail.com>
Fri, 23 Jan 2015 14:16:34 +0000 (15:16 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Wed, 28 Jan 2015 16:17:07 +0000 (17:17 +0100)
commit50b6d948671850283d1d8e05c59758c8062c6e14
tree5b85cc012852e3972bec4dfb221d211a9a150baa
parentbda49a3af43b6dd3447422121f78709397234109
uwrap: Reflect changes of uid/gid in threads to main process.

When thread changes uid/gid this change must be reflected to main
process.

Syscalls changes only uid/gid of thread. Call of libc functions changes
also uid/gid of main process.

Signed-off-by: Robin Hack <hack.robin@gmail.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
lib/uid_wrapper/uid_wrapper.c