[PATCH] Fix bug #9878 - force user does not work as expected.

Gerhard Wiesinger lists at wiesinger.com
Tue Mar 18 00:32:35 MDT 2014


Reviewed-by: Gerhard Wiesinger <lists at wiesinger.com>
Tested-by: Gerhard Wiesinger <lists at wiesinger.com>
Ack-by: Gerhard Wiesinger <lists at wiesinger.com>

Thank you for the fast fix.

Ciao,
Gerhard

--
http://www.wiesinger.com/

On Mon, 17 Mar 2014, Jeremy Allison wrote:

> Michael,
>
> I finally tracked down the cause of bug
> #9878 - force user does not work as expected
>
> https://bugzilla.samba.org/show_bug.cgi?id=9878
>
> You were correct, my git check-in 86d1e1db8e2747e30c89627cda123fde1e84f579
> was the cause. In fixing that I used the wrong
> session_info pointer to call check_user_share_access()
> inside make_connection_snum().
>
> Now I understand the problem the fix is
> obvious (change the call to check_user_share_access()
> inside make_connection_snum() to use the same
> session_info pointer that is used
> inside change_to_user() to potentially
> check access on every packet). Now both
> calls check in *exactly* the same way,
> and in my testing the correct functionality
> from 3.6.x is restored.
>
> Please review and push if you're happy.
> I have versions prepared for 4.1.x and
> 4.0.x once it's in master.
>
> I'm picking you for the review as you
> wrote in the bug report:
>
> "Ok, great! I'll also happily work/collaborate on this."
>
> :-). Once this goes in we should really
> decide on some tests to ensure we can't
> regress on this again.
>
> Cheers,
>
> 	Jeremy.
>


More information about the samba-technical mailing list