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
abb63d6c
Commit
abb63d6c
authored
Oct 18, 2007
by
Steve French
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[CIFS] Return better error when server requires signing but client forbids
Signed-off-by:
Steve French
<
sfrench@us.ibm.com
>
parent
d628ddb6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
fs/cifs/CHANGES
fs/cifs/CHANGES
+2
-1
fs/cifs/cifssmb.c
fs/cifs/cifssmb.c
+3
-1
No files found.
fs/cifs/CHANGES
View file @
abb63d6c
...
@@ -11,7 +11,8 @@ connect fails (e.g. due to signing negotiation failure) fix
...
@@ -11,7 +11,8 @@ connect fails (e.g. due to signing negotiation failure) fix
leak that causes cifsd not to stop and rmmod to fail to cleanup
leak that causes cifsd not to stop and rmmod to fail to cleanup
cifs_request_buffers pool. Fix problem with POSIX Open/Mkdir on
cifs_request_buffers pool. Fix problem with POSIX Open/Mkdir on
bigendian architectures. Fix possible memory corruption when
bigendian architectures. Fix possible memory corruption when
EAGAIN returned on kern_recvmsg.
EAGAIN returned on kern_recvmsg. Return better error if server
requires packet signing but client has disabled it.
Version 1.50
Version 1.50
------------
------------
...
...
fs/cifs/cifssmb.c
View file @
abb63d6c
...
@@ -663,10 +663,12 @@ CIFSSMBNegotiate(unsigned int xid, struct cifsSesInfo *ses)
...
@@ -663,10 +663,12 @@ CIFSSMBNegotiate(unsigned int xid, struct cifsSesInfo *ses)
/* MUST_SIGN already includes the MAY_SIGN FLAG
/* MUST_SIGN already includes the MAY_SIGN FLAG
so if this is zero it means that signing is disabled */
so if this is zero it means that signing is disabled */
cFYI
(
1
,
(
"Signing disabled"
));
cFYI
(
1
,
(
"Signing disabled"
));
if
(
server
->
secMode
&
SECMODE_SIGN_REQUIRED
)
if
(
server
->
secMode
&
SECMODE_SIGN_REQUIRED
)
{
cERROR
(
1
,
(
"Server requires "
cERROR
(
1
,
(
"Server requires "
"packet signing to be enabled in "
"packet signing to be enabled in "
"/proc/fs/cifs/SecurityFlags."
));
"/proc/fs/cifs/SecurityFlags."
));
rc
=
-
EOPNOTSUPP
;
}
server
->
secMode
&=
server
->
secMode
&=
~
(
SECMODE_SIGN_ENABLED
|
SECMODE_SIGN_REQUIRED
);
~
(
SECMODE_SIGN_ENABLED
|
SECMODE_SIGN_REQUIRED
);
}
else
if
((
secFlags
&
CIFSSEC_MUST_SIGN
)
==
CIFSSEC_MUST_SIGN
)
{
}
else
if
((
secFlags
&
CIFSSEC_MUST_SIGN
)
==
CIFSSEC_MUST_SIGN
)
{
...
...
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