summaryrefslogtreecommitdiff
path: root/source4/ntvfs/unixuid
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2014-02-18 09:49:21 +0100
committerVolker Lendecke <vl@samba.org>2014-02-18 10:28:44 +0100
commitd5e88c280c069ec8b8aaa3d5bee6bccbca9790b3 (patch)
tree0638825cb359b777c06103ca8d0f0a4ae421dfc3 /source4/ntvfs/unixuid
parent279ee162541cdba725eeffa7fce72a5db48805ec (diff)
downloadsamba-d5e88c280c069ec8b8aaa3d5bee6bccbca9790b3.tar.gz
Revert "ntvfs_unixuid: No wbc_context required"
This reverts commit f35f88d741f1f896268649238d4ddbda4abb1585. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'source4/ntvfs/unixuid')
-rw-r--r--source4/ntvfs/unixuid/vfs_unixuid.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source4/ntvfs/unixuid/vfs_unixuid.c b/source4/ntvfs/unixuid/vfs_unixuid.c
index 88f3b8b6f34..97a59591b7d 100644
--- a/source4/ntvfs/unixuid/vfs_unixuid.c
+++ b/source4/ntvfs/unixuid/vfs_unixuid.c
@@ -33,6 +33,7 @@
NTSTATUS ntvfs_unixuid_init(void);
struct unixuid_private {
+ struct wbc_context *wbc_ctx;
struct security_unix_token *last_sec_ctx;
struct security_token *last_token;
};
@@ -240,6 +241,13 @@ static NTSTATUS unixuid_connect(struct ntvfs_module_context *ntvfs,
return NT_STATUS_NO_MEMORY;
}
+ priv->wbc_ctx = wbc_init(priv, ntvfs->ctx->msg_ctx,
+ ntvfs->ctx->event_ctx);
+ if (priv->wbc_ctx == NULL) {
+ talloc_free(priv);
+ return NT_STATUS_INTERNAL_ERROR;
+ }
+
priv->last_sec_ctx = NULL;
priv->last_token = NULL;
ntvfs->private_data = priv;