1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-03 04:22:09 +03:00

s3/smbd: fix handling of delete-on-close on directories

This implements a check to test the delete-on-close flag of a directory
for requests to create files in this directory.

Windows server implement this check, Samba doesn't as it has performance
implications.

This commit implements the check and a new option to control it. By
default the check is skipped, setting "check parent directory delete on
close = yes" enables it.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>

Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Sat Feb  3 23:42:16 CET 2018 on sn-devel-144
This commit is contained in:
Ralph Boehme
2018-01-11 17:52:06 +01:00
parent 4c857e08a0
commit 84f07a8dcb
7 changed files with 62 additions and 3 deletions

View File

@ -0,0 +1,13 @@
<samba:parameter name="check parent directory delete on close"
context="S"
type="boolean"
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
<description>
<para>A Windows SMB server prevents the client from creating files in a
directory that has the delete-on-close flag set. By default Samba doesn't
perform this check as this check is a quite expensive operation in Samba.
</para>
</description>
<value type="default">no</value>
</samba:parameter>