1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-01 04:58:35 +03:00
Christian Ambach 4ee73fd97b s3:smbd/close remove filesystem lock before removing sharemode
otherwise we are open for a race condition:

opener 1 opens file and closes it
- during the close, the share mode entry will be removed from
  locking.tdb, but share mode in the file system will be dropped later
  after delete_on_close and write time updates have been done

opener 2 requests open of same file with file overwrite
- locking.tdb does not list original entry, but file system share mode
  is still around
- VFS_FTRUNCATE will fail and error was converted to STATUS_ACCESS_DENIED

Signed-off-by: Christian Ambach <ambi@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>

Autobuild-User(master): Christian Ambach <ambi@samba.org>
Autobuild-Date(master): Tue Jun 25 14:48:44 CEST 2013 on sn-devel-104
2013-06-25 14:48:44 +02:00
..
2013-06-12 01:00:44 +02:00
2013-02-22 16:36:13 +01:00
2013-04-26 15:17:22 -07:00
2013-06-11 13:21:08 -07:00
2012-10-20 09:06:12 +02:00
2013-05-23 06:53:17 +02:00