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
Kirill Smelkov
linux
Commits
9312f675
Commit
9312f675
authored
Jun 04, 2006
by
Steve French
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[CIFS] Fix mask so can set new cifs security flags properly
Signed-off-by:
Steve French
<
sfrench@us.ibm.com
>
parent
254e55ed
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
7 deletions
+6
-7
fs/cifs/cifs_debug.c
fs/cifs/cifs_debug.c
+2
-4
fs/cifs/cifssmb.c
fs/cifs/cifssmb.c
+1
-1
fs/cifs/sess.c
fs/cifs/sess.c
+3
-2
No files found.
fs/cifs/cifs_debug.c
View file @
9312f675
...
...
@@ -860,8 +860,6 @@ security_flags_write(struct file *file, const char __user *buffer,
char
flags_string
[
12
];
char
c
;
cERROR
(
1
,(
"size %ld"
,
count
));
/* BB removeme BB */
if
((
count
<
1
)
||
(
count
>
11
))
return
-
EINVAL
;
...
...
@@ -883,14 +881,14 @@ security_flags_write(struct file *file, const char __user *buffer,
flags
=
simple_strtoul
(
flags_string
,
NULL
,
0
);
c
ERROR
(
1
,(
"sec flags 0x%x"
,
flags
));
/* BB FIXME make cFYI */
c
FYI
(
1
,(
"sec flags 0x%x"
,
flags
));
if
(
flags
<=
0
)
{
cERROR
(
1
,(
"invalid security flags %s"
,
flags_string
));
return
-
EINVAL
;
}
if
(
(
flags
&
CIFSSEC_MASK
)
!=
CIFSSEC_MASK
)
{
if
(
flags
&
~
CIFSSEC_MASK
)
{
cERROR
(
1
,(
"attempt to set unsupported security flags 0x%d"
,
flags
&
~
CIFSSEC_MASK
));
return
-
EINVAL
;
...
...
fs/cifs/cifssmb.c
View file @
9312f675
...
...
@@ -504,7 +504,7 @@ CIFSSMBNegotiate(unsigned int xid, struct cifsSesInfo *ses)
#endif
/* CIFS_WEAK_PW_HASH */
cERROR
(
1
,(
"Server requests plain text password"
" but client support disabled"
));
if
(
extended_security
&
CIFSSEC_MUST_NTLMV2
)
server
->
secType
=
NTLMv2
;
else
...
...
fs/cifs/sess.c
View file @
9312f675
...
...
@@ -339,9 +339,10 @@ CIFS_SessSetup(unsigned int xid, struct cifsSesInfo *ses, int first_time,
return
-
EOPNOTSUPP
;
#endif
wct
=
10
;
/* lanman 2 style sessionsetup */
}
else
if
((
type
==
NTLM
)
||
(
type
==
NTLMv2
))
/* NTLMv2 may retry NTLM */
}
else
if
((
type
==
NTLM
)
||
(
type
==
NTLMv2
))
{
/* For NTLMv2 failures eventually may need to retry NTLM */
wct
=
13
;
/* old style NTLM sessionsetup */
else
/* same size for negotiate or auth, NTLMSSP or extended security */
}
else
/* same size for negotiate or auth, NTLMSSP or extended security */
wct
=
12
;
rc
=
small_smb_init_no_tc
(
SMB_COM_SESSION_SETUP_ANDX
,
wct
,
ses
,
...
...
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