use the tevent nesting code to avoid the uid problem in the VFS
authorAndrew Tridgell <tridge@samba.org>
Thu, 19 Mar 2009 00:23:49 +0000 (11:23 +1100)
committerAndrew Tridgell <tridge@samba.org>
Thu, 19 Mar 2009 00:23:49 +0000 (11:23 +1100)
commitd380c49791d1010d759369cab12d93b6fbd48dc7
tree728fab54ab131015a90092fe9ac17149163bec35
parent13b6663e23a424473d14324ac229a21e1e90580a
use the tevent nesting code to avoid the uid problem in the VFS
backend

The vfs_unixuid module changes the uid of the process when executing
operations on behalf of the user. Within the VFS backend we may rely
on semi-async calls, such as winbind calls, which will call the event
loop again. To cope with this we need to ensure that while inside
those calls we revert the uid to root, then revert back to the
connected user when we have finished with the semi-async calls.
source4/ntvfs/unixuid/vfs_unixuid.c