1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-19 21:57:57 +03:00

r3024: run the *_connect() NTVFS initialisation operation as root, to allow

backends to open databases and perform any other privileged
operations that might be needed.
(This used to be commit 54fd395025656d9b264ba1c1fab6e3ce8ca3d357)
This commit is contained in:
Andrew Tridgell 2004-10-17 22:03:33 +00:00 committed by Gerald (Jerry) Carter
parent 6cc8941f05
commit e81230df4b

View File

@ -361,7 +361,10 @@ static NTSTATUS unixuid_connect(struct ntvfs_module_context *ntvfs,
private->last_sec_ctx = NULL;
private->last_token = NULL;
PASS_THRU_REQ(ntvfs, req, connect, (ntvfs, req, sharename));
/* we don't use PASS_THRU_REQ here, as the connect operation runs with
root privileges. This allows the backends to setup any database
links they might need during the connect. */
status = ntvfs_next_connect(ntvfs, req, sharename);
return status;
}