Re: [PATCH] Test the password field as well as the username field when looking for a session to reuse.
Alex Zeffertt <[email protected]> Thu, 22 Apr 2010 09:26:45 +0100
| Newsgroups | gmane.linux.file-systems.cifs |
|---|---|
| Message-ID | <[email protected]> |
Jeff Layton wrote: > Alex Zeffertt <[email protected]> wrote: > >> Hi all, >> >> I have found a problem with the reusing of existing sessions. The kernel only >> tests the username but not the password when deciding whether to reuse an >> existing session. As a result it is possible for mount.cifs to succeed even if >> the password is incorrect, provided that there is an existing session between >> the client and server for that user. >> >> Please could you consider the attached patch which addresses this issue. >> >> Regards, >> >> Alex Zeffertt > > Yes, I would consider that a good change. > > In fact, I've already incorporated such a change in the auth selection > overhaul patch series that I posted on Friday: > > http://lists.samba.org/archive/linux-cifs-client/2010-April/005839.html > > I'd probably prefer to do this in the context of that patchset rather > than as a standalone thing, unless anyone has objections. > That's fine by me. Great minds think alike and all that :-) Alex