summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-10-17 22:03:33 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:59:59 -0500
commite81230df4b99c4cdcb80648809e62aead3e0ec28 (patch)
treee884829fb6af95151cab7ae74bab2a694b6ddfb3
parent6cc8941f05d5c41e04d83382a7e282fcc191ccd1 (diff)
downloadsamba-e81230df4b99c4cdcb80648809e62aead3e0ec28.tar.gz
samba-e81230df4b99c4cdcb80648809e62aead3e0ec28.tar.bz2
samba-e81230df4b99c4cdcb80648809e62aead3e0ec28.zip
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)
-rw-r--r--source4/ntvfs/unixuid/vfs_unixuid.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/ntvfs/unixuid/vfs_unixuid.c b/source4/ntvfs/unixuid/vfs_unixuid.c
index a5934a07fa..542b011c67 100644
--- a/source4/ntvfs/unixuid/vfs_unixuid.c
+++ b/source4/ntvfs/unixuid/vfs_unixuid.c
@@ -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;
}