smbd: Implement SET_REPARSE_POINT buffer size checks
commitb20e95fb0a53e74891c043ebdb1375ce53831d91
authorVolker Lendecke <vl@samba.org>
Fri, 2 Dec 2022 10:06:38 +0000 (2 11:06 +0100)
committerJeremy Allison <jra@samba.org>
Thu, 22 Dec 2022 19:50:34 +0000 (22 19:50 +0000)
treeb0e28d21e2cba927da792ee16fb7e2ed8159c09d
parentf70b38321bf3b9eb86fac99cfefe7927749c9821
smbd: Implement SET_REPARSE_POINT buffer size checks

Partially survives

samba.tests.reparsepoints.ReparsePoints.test_create_reparse

NTTRANS-FSCTL needs changing: Windows 2016 returns INVALID_BUFFER_SIZE
instead of our NOT_A_REPARSE_POINT. This is not the whole story, but
this smbtorture3 change makes autobuild survive.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/modules/util_reparse.c
source3/torture/test_nttrans_fsctl.c