Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
189acaae
Commit
189acaae
authored
Jun 23, 2006
by
Steve French
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[CIFS] Enable sec flags on mount for cifs (part one)
Signed-off-by:
Steve French
<
sfrench@us.ibm.com
>
parent
75ba632a
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
321 deletions
+28
-321
fs/cifs/README
fs/cifs/README
+2
-0
fs/cifs/cifsproto.h
fs/cifs/cifsproto.h
+1
-1
fs/cifs/connect.c
fs/cifs/connect.c
+23
-315
fs/cifs/sess.c
fs/cifs/sess.c
+2
-5
No files found.
fs/cifs/README
View file @
189acaae
...
...
@@ -453,6 +453,8 @@ sec Security mode. Allowed values are:
server requires signing also can be the default)
ntlmv2 Use NTLMv2 password hashing
ntlmv2i Use NTLMv2 password hashing with packet signing
lanman (if configured in kernel config) use older
lanman hash
The mount.cifs mount helper also accepts a few mount options before -o
including:
...
...
fs/cifs/cifsproto.h
View file @
189acaae
...
...
@@ -68,10 +68,10 @@ extern void header_assemble(struct smb_hdr *, char /* command */ ,
extern
int
small_smb_init_no_tc
(
const
int
smb_cmd
,
const
int
wct
,
struct
cifsSesInfo
*
ses
,
void
**
request_buf
);
#endif
extern
int
CIFS_SessSetup
(
unsigned
int
xid
,
struct
cifsSesInfo
*
ses
,
const
int
stage
,
const
struct
nls_table
*
nls_cp
);
#endif
extern
__u16
GetNextMid
(
struct
TCP_Server_Info
*
server
);
extern
struct
oplock_q_entry
*
AllocOplockQEntry
(
struct
inode
*
,
u16
,
struct
cifsTconInfo
*
);
...
...
fs/cifs/connect.c
View file @
189acaae
This diff is collapsed.
Click to expand it.
fs/cifs/sess.c
View file @
189acaae
...
...
@@ -33,8 +33,6 @@
extern
void
SMBNTencrypt
(
unsigned
char
*
passwd
,
unsigned
char
*
c8
,
unsigned
char
*
p24
);
#ifdef CONFIG_CIFS_EXPERIMENTAL
static
__u32
cifs_ssetup_hdr
(
struct
cifsSesInfo
*
ses
,
SESSION_SETUP_ANDX
*
pSMB
)
{
__u32
capabilities
=
0
;
...
...
@@ -319,7 +317,7 @@ CIFS_SessSetup(unsigned int xid, struct cifsSesInfo *ses, int first_time,
__u32
capabilities
;
int
count
;
int
resp_buf_type
=
0
;
struct
kvec
iov
[
1
];
struct
kvec
iov
[
2
];
/* BB split variable length info into 2nd iovec */
enum
securityEnum
type
;
__u16
action
;
int
bytes_remaining
;
...
...
@@ -489,7 +487,7 @@ CIFS_SessSetup(unsigned int xid, struct cifsSesInfo *ses, int first_time,
}
action
=
le16_to_cpu
(
pSMB
->
resp
.
Action
);
if
(
action
&
GUEST_LOGIN
)
cFYI
(
1
,
(
"
Guest login"
));
/* BB mark SesInfo struct? */
cFYI
(
1
,
(
"Guest login"
));
/* BB mark SesInfo struct? */
ses
->
Suid
=
smb_buf
->
Uid
;
/* UID left in wire format (le) */
cFYI
(
1
,
(
"UID = %d "
,
ses
->
Suid
));
/* response can have either 3 or 4 word count - Samba sends 3 */
...
...
@@ -525,4 +523,3 @@ CIFS_SessSetup(unsigned int xid, struct cifsSesInfo *ses, int first_time,
return
rc
;
}
#endif
/* CONFIG_CIFS_EXPERIMENTAL */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment