1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/source3
Christof Schmitt 162a5257c4 smbd: Fix DELETE_ON_CLOSE behaviour on files with READ_ONLY attribute
MS-FSA states that a CREATE with FILE_DELETE_ON_CLOSE on an existing
file with READ_ONLY attribute has to return STATUS_CANNOT_DELETE. This
was missing in smbd as the check used the DOS attributes from the CREATE
instead of the DOS attributes on the existing file.

We need to handle the new file and existing file cases separately.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13673

Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2018-11-03 03:01:25 +01:00
..
auth lib: Remove gencache.h from proto.h 2018-10-19 18:52:50 +02:00
build source3/build/charset.py: update to handle waf 2.0.4 2018-09-05 06:37:23 +02:00
client s3:lib: Move popt_common_credentials to separate file 2018-09-07 17:26:14 +02:00
exports
groupdb passdb: Use dom_sid_str_buf 2018-11-02 21:21:16 +01:00
include lib: Remove unused tdb_trans_* functions 2018-10-27 21:24:24 +02:00
intl lib: Pass mem_ctx to lock_path() 2018-08-17 11:30:10 +02:00
lib lib: Use dom_sid_str_buf 2018-11-02 21:21:16 +01:00
libads lib: Remove gencache.h from proto.h 2018-10-19 18:52:50 +02:00
libgpo/gpext libgpo: Fix CID 1438462 Error handling issues (CHECKED_RETURN) 2018-08-22 00:58:41 +02:00
libnet s3:libads: Add net ads leave keep-account option 2018-07-30 07:34:11 +02:00
librpc smbd: Remove "share_mode_entry->lease" 2018-07-27 01:42:31 +02:00
libsmb libsmb: Use dom_sid_str_buf 2018-11-02 21:21:15 +01:00
locale pam_winbind: initial Turkish translation 2017-11-15 13:52:05 +01:00
locking leases: Streamline leases_db_key a bit 2018-10-03 04:11:59 +02:00
modules vfs_delay_inject: implement pread_send and pwrite_send 2018-11-02 21:21:14 +01:00
nmbd lib: Remove gencache.h from proto.h 2018-10-19 18:52:50 +02:00
param s3:loadparm: reinit_globals in lp_load_with_registry_shares() 2018-09-07 17:26:14 +02:00
passdb lib: Remove gencache.h from proto.h 2018-10-19 18:52:50 +02:00
printing tdb_unpack: Correct "len" arg for "B" format 2018-10-08 22:17:09 +02:00
profile lib: Pass mem_ctx to cache_path() 2018-08-17 14:28:51 +02:00
registry s3:registry: Avoid a double-free in reg_perfcount 2018-10-19 23:11:26 +02:00
rpc_client s3-rpc_client: Advertise Windows 7 client info 2018-09-08 01:43:27 +02:00
rpc_server lib: Remove gencache.h from proto.h 2018-10-19 18:52:50 +02:00
rpcclient s3-rpcclient: Use spoolss_init_spoolss_UserLevel1 in winspool cmds 2018-09-08 01:43:27 +02:00
script nsswitch: Run nsswitch thread test 2018-11-01 05:06:23 +01:00
selftest s4:torture/smb2/read: add test for cancelling SMB aio 2018-11-02 21:21:14 +01:00
services srcctl3: Improve debug messages 2018-01-16 02:43:03 +01:00
smbd smbd: Fix DELETE_ON_CLOSE behaviour on files with READ_ONLY attribute 2018-11-03 03:01:25 +01:00
torture s3:torture: Rename the test file and remove it if it exists 2018-10-27 21:24:23 +02:00
utils net: Use dom_sid_str_buf 2018-11-02 21:21:15 +01:00
web
winbindd winbindd: Use dom_sid_str_buf 2018-11-02 21:21:15 +01:00
.clang_complete
.dmallocrc
.indent.pro
Doxyfile
mainpage.dox
smbadduser.in
wscript s3/wscript: fix flex detection 2018-09-07 11:37:23 +02:00
wscript_build s3:lib: Rename server_contexts to global_contexts 2018-09-07 17:26:17 +02:00
wscript_configure_system_ncurses source3/wscript_configure_system_ncurses: update to handle waf 2.0.4 2018-09-05 06:37:24 +02:00