summaryrefslogtreecommitdiff
path: root/usr/src/lib/smbsrv
diff options
context:
space:
mode:
authorMatt Barden <matt.barden@nexenta.com>2016-02-26 17:14:53 -0500
committerGordon Ross <gwr@nexenta.com>2019-06-07 23:01:40 -0400
commit811599a462e8920d70cf548f4002182d3c222d13 (patch)
tree1e89924ed00acb4bb396670d4aa20c6fc5bb6759 /usr/src/lib/smbsrv
parent5cb2894a4e6bdb3bf08605e4bc819421f53c5b36 (diff)
downloadillumos-gate-811599a462e8920d70cf548f4002182d3c222d13.tar.gz
11011 SMB2/3 durable handles
Portions contributed by: Gordon Ross <gwr@nexenta.com> Reviewed by: Gordon Ross <gwr@nexenta.com> Reviewed by: Kevin Crowe <kevin.crowe@nexenta.com> Reviewed by: Evan Layton <evan.layton@nexenta.com> Reviewed by: Roman Strashkin <roman.strashkin@nexenta.com> Reviewed by: Rick McNeal <rick.mcneal@nexenta.com> Approved by: Garrett D'Amore <garrett@damore.org>
Diffstat (limited to 'usr/src/lib/smbsrv')
-rw-r--r--usr/src/lib/smbsrv/libfksmbsrv/Makefile.com1
-rw-r--r--usr/src/lib/smbsrv/libfksmbsrv/common/fksmb_cred.c11
2 files changed, 10 insertions, 2 deletions
diff --git a/usr/src/lib/smbsrv/libfksmbsrv/Makefile.com b/usr/src/lib/smbsrv/libfksmbsrv/Makefile.com
index 6809bde3c3..db76d55f78 100644
--- a/usr/src/lib/smbsrv/libfksmbsrv/Makefile.com
+++ b/usr/src/lib/smbsrv/libfksmbsrv/Makefile.com
@@ -123,6 +123,7 @@ OBJS_FS_SMBSRV = \
\
smb2_aapl.o \
smb2_dispatch.o \
+ smb2_durable.o \
smb2_cancel.o \
smb2_change_notify.o \
smb2_close.o \
diff --git a/usr/src/lib/smbsrv/libfksmbsrv/common/fksmb_cred.c b/usr/src/lib/smbsrv/libfksmbsrv/common/fksmb_cred.c
index 0ddd6f51bc..7b2bb93581 100644
--- a/usr/src/lib/smbsrv/libfksmbsrv/common/fksmb_cred.c
+++ b/usr/src/lib/smbsrv/libfksmbsrv/common/fksmb_cred.c
@@ -20,7 +20,7 @@
*/
/*
* Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
- * Copyright 2013 Nexenta Systems, Inc. All rights reserved.
+ * Copyright 2016 Nexenta Systems, Inc. All rights reserved.
*/
#include <sys/types.h>
@@ -38,11 +38,18 @@
* we don't bother with real credential. Everything here uses
* the ordinary credentials of the process running this.
*/
+
+/*
+ * This library does not implement real credentials. All contexts
+ * use an opaque cred_t object, and all activity happens in the
+ * context of the user who runs the program.
+ */
cred_t *
smb_cred_create(smb_token_t *token)
{
+ _NOTE(ARGUNUSED(token))
cred_t *cr;
- cr = (cred_t *)token; /* hack */
+ cr = CRED();
return (cr);
}