Add check_user_share_access()
authorJeremy Allison <jra@samba.org>
Fri, 11 Jan 2013 19:01:25 +0000 (11:01 -0800)
committerKarolin Seeger <kseeger@samba.org>
Mon, 14 Jan 2013 18:03:28 +0000 (19:03 +0100)
commitc1292fa4b0f8f0297d8831e24eed7a7414645060
tree6e01f77607ecfeb361770a662cc4244a3e421417
parentc03fd9c96b1d0b1a8f491daaf192293a666fd9d4
Add check_user_share_access()

This factors out the share security and read_only flag
setting code so this can be called from both make_connection_snum()
as well as check_user_ok(). Gives a consistent share security
check function.

Signed-off-by: Jeremy Allison <jra@samba.org>
source3/smbd/proto.h
source3/smbd/uid.c