Print this page
12513 SMB 3.1.1 support for server
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/lib/smbsrv/libfksmbsrv/Makefile.com
+++ new/usr/src/lib/smbsrv/libfksmbsrv/Makefile.com
1 1 #
2 2 # CDDL HEADER START
3 3 #
4 4 # The contents of this file are subject to the terms of the
5 5 # Common Development and Distribution License (the "License").
6 6 # You may not use this file except in compliance with the License.
7 7 #
8 8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 # or http://www.opensolaris.org/os/licensing.
10 10 # See the License for the specific language governing permissions
11 11 # and limitations under the License.
12 12 #
13 13 # When distributing Covered Code, include this CDDL HEADER in each
14 14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 15 # If applicable, add the following below this CDDL HEADER, with the
16 16 # fields enclosed by brackets "[]" replaced with your own identifying
17 17 # information: Portions Copyright [yyyy] [name of copyright owner]
↓ open down ↓ |
17 lines elided |
↑ open up ↑ |
18 18 #
19 19 # CDDL HEADER END
20 20 #
21 21 #
22 22 # Copyright 2008 Sun Microsystems, Inc. All rights reserved.
23 23 # Use is subject to license terms.
24 24 #
25 25 # Copyright 2017 Nexenta Systems, Inc. All rights reserved.
26 26 #
27 27 # Copyright (c) 2018, Joyent, Inc.
28 +#
29 +# Copyright 2020 RackTop Systems, Inc.
28 30
29 31 LIBRARY = libfksmbsrv.a
30 32 VERS = .1
31 33
32 34 OBJS_LOCAL = \
33 35 fksmb_cred.o \
34 36 fksmb_encrypt_pkcs.o \
35 37 fksmb_fem.o \
36 38 fksmb_idmap.o \
37 39 fksmb_init.o \
38 40 fksmb_kdoor.o \
41 + fksmb_preauth_pkcs.o \
39 42 fksmb_sign_pkcs.o \
40 43 fake_lookup.o \
41 44 fake_nblk.o \
42 45 fake_vfs.o \
43 46 fake_vnode.o \
44 47 fake_vop.o \
45 48 fake_xattr.o \
46 49 reparse.o \
47 50 vncache.o
48 51
49 52 # See also: $SRC/uts/common/Makefile.files
50 53 # NB: Intentionally ommitted, compared w/ the above:
51 54 # smb_cred, smb_fem, smb_idmap, smb_init, smb_kdoor
52 55 #
53 56 OBJS_FS_SMBSRV = \
54 57 smb_acl.o \
55 58 smb_alloc.o \
56 59 smb_authenticate.o \
57 60 smb_close.o \
58 61 smb_cmn_oplock.o \
59 62 smb_cmn_rename.o \
60 63 smb_cmn_setfile.o \
61 64 smb_common_open.o \
62 65 smb_common_transact.o \
63 66 smb_create.o \
64 67 smb_delete.o \
65 68 smb_dfs.o \
66 69 smb_directory.o \
67 70 smb_dispatch.o \
68 71 smb_echo.o \
69 72 smb_errno.o \
70 73 smb_find.o \
71 74 smb_flush.o \
72 75 smb_fsinfo.o \
73 76 smb_fsops.o \
74 77 smb_kshare.o \
75 78 smb_kutil.o \
76 79 smb_lock.o \
77 80 smb_lock_byte_range.o \
78 81 smb_locking_andx.o \
79 82 smb_logoff_andx.o \
80 83 smb_mangle_name.o \
81 84 smb_mbuf_marshaling.o \
82 85 smb_mbuf_util.o \
83 86 smb_negotiate.o \
84 87 smb_net.o \
85 88 smb_node.o \
86 89 smb_notify.o \
87 90 smb_nt_cancel.o \
88 91 smb_nt_create_andx.o \
89 92 smb_nt_transact_create.o \
90 93 smb_nt_transact_ioctl.o \
91 94 smb_nt_transact_notify_change.o \
92 95 smb_nt_transact_quota.o \
93 96 smb_nt_transact_security.o \
94 97 smb_odir.o \
95 98 smb_ofile.o \
96 99 smb_open_andx.o \
97 100 smb_opipe.o \
98 101 smb_oplock.o \
99 102 smb_pathname.o \
100 103 smb_print.o \
101 104 smb_process_exit.o \
102 105 smb_query_fileinfo.o \
103 106 smb_quota.o \
104 107 smb_read.o \
105 108 smb_rename.o \
106 109 smb_sd.o \
107 110 smb_seek.o \
108 111 smb_server.o \
109 112 smb_session.o \
110 113 smb_session_setup_andx.o \
111 114 smb_set_fileinfo.o \
112 115 smb_signing.o \
113 116 smb_srv_oplock.o \
114 117 smb_thread.o \
115 118 smb_tree.o \
116 119 smb_trans2_create_directory.o \
117 120 smb_trans2_dfs.o \
118 121 smb_trans2_find.o \
119 122 smb_tree_connect.o \
120 123 smb_unlock_byte_range.o \
121 124 smb_user.o \
122 125 smb_vops.o \
123 126 smb_vss.o \
124 127 smb_write.o \
125 128 \
126 129 smb2_aapl.o \
127 130 smb2_dispatch.o \
128 131 smb2_durable.o \
129 132 smb2_cancel.o \
130 133 smb2_change_notify.o \
131 134 smb2_close.o \
132 135 smb2_create.o \
133 136 smb2_echo.o \
134 137 smb2_flush.o \
135 138 smb2_fsctl_copychunk.o \
136 139 smb2_fsctl_fs.o \
137 140 smb2_fsctl_odx.o \
138 141 smb2_fsctl_sparse.o \
139 142 smb2_ioctl.o \
140 143 smb2_lease.o \
141 144 smb2_lock.o \
142 145 smb2_logoff.o \
143 146 smb2_negotiate.o \
144 147 smb2_ofile.o \
145 148 smb2_oplock.o \
146 149 smb2_qinfo_file.o \
147 150 smb2_qinfo_fs.o \
148 151 smb2_qinfo_sec.o \
149 152 smb2_qinfo_quota.o \
150 153 smb2_query_dir.o \
151 154 smb2_query_info.o \
152 155 smb2_read.o \
153 156 smb2_session_setup.o \
↓ open down ↓ |
105 lines elided |
↑ open up ↑ |
154 157 smb2_set_info.o \
155 158 smb2_setinfo_file.o \
156 159 smb2_setinfo_fs.o \
157 160 smb2_setinfo_quota.o \
158 161 smb2_setinfo_sec.o \
159 162 smb2_signing.o \
160 163 smb2_tree_connect.o \
161 164 smb2_tree_disconn.o \
162 165 smb2_write.o \
163 166 \
167 + smb3_kdf.o \
164 168 smb3_encrypt.o
165 169
166 170 # Can't just link with -lsmb because of user vs kernel API
167 171 # i.e. can't call free with mem from kmem_alloc, which is
168 172 # what happens if we just link with -lsmb
169 173 OBJS_CMN_SMBSRV = \
170 174 smb_cfg_util.o \
171 175 smb_inet.o \
172 176 smb_match.o \
173 177 smb_msgbuf.o \
174 178 smb_native.o \
175 179 smb_netbios_util.o \
176 180 smb_oem.o \
177 181 smb_sid.o \
178 182 smb_string.o \
179 183 smb_token.o \
180 184 smb_token_xdr.o \
181 185 smb_utf8.o \
182 186 smb_xdr.o
183 187
184 188 OBJS_MISC = \
185 189 acl_common.o \
186 190 pathname.o \
187 191 refstr.o \
188 192 smb_status2winerr.o \
189 193 xattr_common.o
190 194
191 195 # This one can't be in OBJECTS, as it has to depend on
192 196 # all of those for the COMPILE.d rule (which processes
193 197 # all those objects collecting probe instances).
194 198 DTRACE_OBJS = fksmb_dt.o
195 199
196 200 OBJECTS = \
197 201 $(OBJS_LOCAL) \
198 202 $(OBJS_FS_SMBSRV) \
199 203 $(OBJS_CMN_SMBSRV) \
200 204 $(OBJS_MISC)
201 205
202 206 include ../../../Makefile.lib
203 207 include ../../Makefile.lib
204 208
205 209 # Force SOURCEDEBUG
206 210 CSOURCEDEBUGFLAGS = $(CCGDEBUG)
207 211 CCSOURCEDEBUGFLAGS = $(CCGDEBUG)
208 212 STRIP_STABS = :
209 213
210 214
211 215 # Note: need our sys includes _before_ ENVCPPFLAGS, proto etc.
212 216 # Also, like Makefile.uts, reset CPPFLAGS
213 217 CPPFLAGS.first += -I../../../libfakekernel/common
214 218 CPPFLAGS.first += -I../common
215 219 CPPFLAGS = $(CPPFLAGS.first)
216 220
217 221 INCS += -I$(SRC)/uts/common
218 222 INCS += -I$(SRC)/common/smbsrv
219 223 INCS += -I$(SRC)/common
220 224
221 225 LINTCHECKFLAGS += -erroff=E_INCONS_ARG_DECL2
222 226 LINTCHECKFLAGS += -erroff=E_INCONS_VAL_TYPE_DECL2
223 227 LINTCHECKFLAGS += -erroff=E_INCONS_VAL_TYPE_USED2
224 228
225 229 LDLIBS += $(MACH_LDLIBS)
226 230 LDLIBS += -lfakekernel -lidmap -lcmdutils
227 231 LDLIBS += -lavl -lnvpair -lnsl -lpkcs11 -lreparse -lc
228 232
229 233 CPPFLAGS += $(INCS) -D_REENTRANT -D_FAKE_KERNEL
230 234 CPPFLAGS += -D_FILE_OFFSET_BITS=64
231 235 # Always want DEBUG here
232 236 CPPFLAGS += -DDEBUG
233 237
234 238 CERRWARN += -_gcc=-Wno-switch
235 239
236 240 # not linted
237 241 SMATCH=off
238 242
239 243 SRCS= $(OBJS_LOCAL:%.o=$(SRCDIR)/%.c) \
240 244 $(OBJS_FS_SMBSRV:%.o=$(SRC)/uts/common/fs/smbsrv/%.c) \
241 245 $(OBJS_CMN_SMBSRV:%.o=$(SRC)/common/smbsrv/%.c)
242 246
243 247 all:
244 248
245 249 pics/%.o: $(SRC)/uts/common/fs/smbsrv/%.c
246 250 $(COMPILE.c) -o $@ $<
247 251 $(POST_PROCESS_O)
248 252
249 253 pics/acl_common.o: $(SRC)/common/acl/acl_common.c
250 254 $(COMPILE.c) -o $@ $(SRC)/common/acl/acl_common.c
251 255 $(POST_PROCESS_O)
252 256
253 257 pics/pathname.o: $(SRC)/uts/common/fs/pathname.c
254 258 $(COMPILE.c) -o $@ $(SRC)/uts/common/fs/pathname.c
255 259 $(POST_PROCESS_O)
256 260
257 261 pics/refstr.o: $(SRC)/uts/common/os/refstr.c
258 262 $(COMPILE.c) -o $@ $(SRC)/uts/common/os/refstr.c
259 263 $(POST_PROCESS_O)
260 264
261 265 pics/smb_status2winerr.o: $(SRC)/common/smbclnt/smb_status2winerr.c
262 266 $(COMPILE.c) -o $@ $(SRC)/common/smbclnt/smb_status2winerr.c
263 267 $(POST_PROCESS_O)
264 268
265 269 pics/xattr_common.o: $(SRC)/common/xattr/xattr_common.c
266 270 $(COMPILE.c) -o $@ $(SRC)/common/xattr/xattr_common.c
267 271 $(POST_PROCESS_O)
268 272
269 273 # Makefile.targ has rule for $(SRC)/common/smbsrv/%.c
270 274
271 275 .KEEP_STATE:
272 276
273 277 include ../../Makefile.targ
274 278 include ../../../Makefile.targ
275 279
276 280 EXTPICS= $(DTRACE_OBJS:%=pics/%)
277 281 CLEANFILES += $(EXTPICS)
278 282
279 283 $(OBJS) $(PICS) : ../common/fksmb_dt.h
280 284
281 285 pics/fksmb_dt.o: ../common/fksmb_dt.d $(PICS)
282 286 $(COMPILE.d) -C -s ../common/fksmb_dt.d -o $@ $(PICS)
283 287 $(POST_PROCESS_O)
↓ open down ↓ |
110 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX