1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00
samba-mirror/source3/smbd
Jeremy Allison 118e77d86a s3: smbd. Generic fix for incorrect reporting of stream dos attributes on a directory
According to MS-FSA a stream name does not have
separate DOS attribute metadata, so we must return
the DOS attribute from the base filename. With one caveat,
a non-default stream name can never be a directory.

As this is common to all streams data stores, we handle
it here instead of inside all stream VFS modules.

Otherwise identical logic would have to be added to
all streams modules in their [f]get_dos_attribute_fn()
VFS calls.

Found in real-world use case by Andrew Walker <awalker@ixsystems.com>.

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

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Böhme <slow@samba.org>
2018-04-11 23:09:12 +02:00
..
notifyd notifyd: Broadcast to all connected nodes 2017-09-29 08:38:10 +02:00
aio.c smbd: Fix async large read 2017-12-12 20:37:08 +01:00
avahi_register.c s3:avahi: Fix size types 2018-03-20 23:16:15 +01:00
blocking.c dlist: remove unneeded type argument from DLIST_ADD_END() 2016-02-06 21:48:17 +01:00
close.c smbd: Avoid a dependency on share_mode_entry->id 2018-02-13 00:26:43 +01:00
conn_idle.c
conn_msg.c
conn.c
connection.c
dfree.c s3: VFS: Change SMB_VFS_DISK_FREE to use const struct smb_filename * instead of const char *. 2017-06-18 02:49:24 +02:00
dir.c s3:smbd: don't use the directory cache for SMB2/3 2018-03-30 03:51:48 +02:00
dmapi.c
dnsregister.c
dosmode.c s3: smbd. Generic fix for incorrect reporting of stream dos attributes on a directory 2018-04-11 23:09:12 +02:00
durable.c lib: Add lib/util/server_id.h 2017-01-22 18:30:11 +01:00
error.c
fake_file.c
file_access.c s3: Filenames: Add uint32_t flags parameter to synthetic_smb_fname(). 2016-03-24 22:57:16 +01:00
fileio.c smbd: Fix line length & whitespace in write_file 2016-02-23 22:03:16 +01:00
filename.c S3: smbd: Finish plumbing struct smb_filename * through the check_name() stack. 2017-07-01 03:07:11 +02:00
files.c s3: smbd: When deleting an fsp pointer ensure we don't keep any references to it around. 2017-06-22 00:12:49 +02:00
globals.c printing: use housekeeping period that matches cache time 2016-04-19 09:37:14 +02:00
globals.h smbd: Fix channel sequence number checks for long-running requests 2018-01-14 10:26:05 +01:00
ipc.c
lanman.c s3:smbd: consistently use talloc_tos() memory for rpc_pipe_open_interface() 2017-07-10 23:22:10 +02:00
mangle_hash2.c
mangle_hash.c
mangle.c s3/smbd: convert "mangled names" option to an enum 2017-01-09 19:31:20 +01:00
message.c Update smbrun to allow for settings environment variables. 2016-10-13 04:26:26 +02:00
msdfs.c s3: VFS: Change SMB_VFS_GETWD to return struct smb_filename * instead of char *. 2017-07-01 03:07:11 +02:00
negprot.c s3:smbd: Fix size types in reply_negprot() 2018-04-03 20:20:10 +02:00
notify_fam.c smbd: Allow passing notify filter from inotify and fam 2016-07-18 15:14:11 +02:00
notify_inotify.c s3: smbd: inotify_map_mask_to_filter incorrectly indexes an array. 2017-04-28 03:18:23 +02:00
notify_msg.c lib: Add lib/util/server_id.h 2017-01-22 18:30:11 +01:00
notify.c s3:smbd: return the correct error for cancelled SMB2 notifies on expired sessions 2017-12-21 19:12:09 +01:00
ntquotas.c s3: VFS: Change SMB_VFS_GET_QUOTA to use const struct smb_filename * instead of const char *. 2017-06-18 02:49:25 +02:00
nttrans.c s3:smbd: Add FALL_THROUGH statements in nttrans.c 2018-03-01 04:37:42 +01:00
open.c smbd: Fix CID 240676 Dereference after null check 2018-04-04 00:44:22 +02:00
oplock_irix.c
oplock_linux.c
oplock.c smbd: Pass "file_id" explicitly to send_break_to_none 2018-02-13 00:26:43 +01:00
password.c wscript: drop checks for setnetgrent/endnetgrent/getnetgrent 2018-02-21 14:19:17 +01:00
perfcount.c lib:util: Make probing of modules more secure 2017-06-06 18:36:07 +02:00
pipes.c rpc_server: Re-order and rename remote and local address in np_open() 2017-03-29 02:37:29 +02:00
posix_acls.c s3:smbd: remove deprecated handling of "profile acls = yes" 2017-12-13 20:34:24 +01:00
process.c smbd: Fix CID 1414783 Double unlock 2018-04-11 19:07:24 +02:00
proto.h smbd: Pass "file_id" explicitly to send_break_message() 2018-02-13 00:26:43 +01:00
pysmbd.c python3 port for smbd module 2018-04-05 08:59:09 +02:00
quotas.c s3: VFS: Change SMB_VFS_GET_QUOTA to use const struct smb_filename * instead of const char *. 2017-06-18 02:49:25 +02:00
reply.c libsmb: Give namequery.c its own header 2018-04-11 01:06:39 +02:00
scavenger.c lib: Remove unused serverid.tdb 2017-12-05 04:58:26 +01:00
scavenger.h
seal.c auth: Always supply both the remote and local address to the auth subsystem 2017-03-29 02:37:26 +02:00
sec_ctx.c s3:smbd: Fix incorrect use of sys_getgroups() 2017-04-18 15:43:02 +02:00
server_exit.c source3: initilize_password_db after a fork. 2018-04-06 02:08:45 +02:00
server_reload.c
server.c s3:auth: Pass mem_ctx to init_system_session_info() 2018-02-21 02:46:40 +01:00
service.c s3: VFS: Change SMB_VFS_REALPATH to take and return struct smb_filename * instead of char *. 2017-07-01 03:07:11 +02:00
session.c
sesssetup.c s3: remove dead already commented code 2018-02-21 14:19:17 +01:00
share_access.c smbd: remove redundant comment (with typo) from token_contains_name() 2016-08-04 18:26:07 +02:00
signing.c
smb2_break.c s3: debug: smb2: Create a new DBGC_SMB2 debug class and mark all smbd/smb2_*.c files with it. 2018-03-22 02:15:13 +01:00
smb2_close.c s3: debug: smb2: Create a new DBGC_SMB2 debug class and mark all smbd/smb2_*.c files with it. 2018-03-22 02:15:13 +01:00
smb2_create.c s3: debug: smb2: Create a new DBGC_SMB2 debug class and mark all smbd/smb2_*.c files with it. 2018-03-22 02:15:13 +01:00
smb2_flush.c s3: debug: smb2: Create a new DBGC_SMB2 debug class and mark all smbd/smb2_*.c files with it. 2018-03-22 02:15:13 +01:00
smb2_getinfo.c s3: debug: smb2: Create a new DBGC_SMB2 debug class and mark all smbd/smb2_*.c files with it. 2018-03-22 02:15:13 +01:00
smb2_glue.c s3: debug: smb2: Create a new DBGC_SMB2 debug class and mark all smbd/smb2_*.c files with it. 2018-03-22 02:15:13 +01:00
smb2_ioctl_dfs.c s3: debug: smb2: Create a new DBGC_SMB2 debug class and mark all smbd/smb2_*.c files with it. 2018-03-22 02:15:13 +01:00
smb2_ioctl_filesys.c s3: debug: smb2: Create a new DBGC_SMB2 debug class and mark all smbd/smb2_*.c files with it. 2018-03-22 02:15:13 +01:00
smb2_ioctl_named_pipe.c s3: debug: smb2: Create a new DBGC_SMB2 debug class and mark all smbd/smb2_*.c files with it. 2018-03-22 02:15:13 +01:00
smb2_ioctl_network_fs.c s3: debug: smb2: Create a new DBGC_SMB2 debug class and mark all smbd/smb2_*.c files with it. 2018-03-22 02:15:13 +01:00
smb2_ioctl_private.h
smb2_ioctl.c s3: debug: smb2: Create a new DBGC_SMB2 debug class and mark all smbd/smb2_*.c files with it. 2018-03-22 02:15:13 +01:00
smb2_keepalive.c s3: debug: smb2: Create a new DBGC_SMB2 debug class and mark all smbd/smb2_*.c files with it. 2018-03-22 02:15:13 +01:00
smb2_lock.c s3: debug: smb2: Create a new DBGC_SMB2 debug class and mark all smbd/smb2_*.c files with it. 2018-03-22 02:15:13 +01:00
smb2_negprot.c s3: debug: smb2: Create a new DBGC_SMB2 debug class and mark all smbd/smb2_*.c files with it. 2018-03-22 02:15:13 +01:00
smb2_notify.c s3: debug: smb2: Create a new DBGC_SMB2 debug class and mark all smbd/smb2_*.c files with it. 2018-03-22 02:15:13 +01:00
smb2_query_directory.c s3: debug: smb2: Create a new DBGC_SMB2 debug class and mark all smbd/smb2_*.c files with it. 2018-03-22 02:15:13 +01:00
smb2_read.c s3: debug: smb2: Create a new DBGC_SMB2 debug class and mark all smbd/smb2_*.c files with it. 2018-03-22 02:15:13 +01:00
smb2_server.c s3: smbd: SMB2: Add DBGC_SMB2_CREDITS class to specifically debug credit issues. 2018-03-22 02:15:13 +01:00
smb2_sesssetup.c s3: debug: smb2: Create a new DBGC_SMB2 debug class and mark all smbd/smb2_*.c files with it. 2018-03-22 02:15:13 +01:00
smb2_setinfo.c s3: debug: smb2: Create a new DBGC_SMB2 debug class and mark all smbd/smb2_*.c files with it. 2018-03-22 02:15:13 +01:00
smb2_tcon.c s3:smb2_tcon: Add check to prevent non-DFS clients from connecting to an msdfs proxy. 2018-04-07 05:05:22 +02:00
smb2_write.c s3: debug: smb2: Create a new DBGC_SMB2 debug class and mark all smbd/smb2_*.c files with it. 2018-03-22 02:15:13 +01:00
smbd_cleanupd.c lib: Remove unused serverid.tdb 2017-12-05 04:58:26 +01:00
smbd_cleanupd.h smbd: Implement a cleanup daemon 2015-11-16 14:51:33 +01:00
smbd.h s3: smbd: Add UCF_GMT_PATHNAME, which represents FLAGS2_REPARSE_PATH. 2017-05-22 18:41:16 +02:00
smbXsrv_client.c lib: Add lib/util/server_id.h 2017-01-22 18:30:11 +01:00
smbXsrv_open.c lib: Add lib/util/server_id.h 2017-01-22 18:30:11 +01:00
smbXsrv_session.c dbwrap_watch: Remove the "prec" parameter from watch_recv 2017-11-29 16:59:15 +01:00
smbXsrv_tcon.c lib: Add lib/util/server_id.h 2017-01-22 18:30:11 +01:00
smbXsrv_version.c
srvstr.c s3: smbd: Chain code can return uninitialized memory when talloc buffer is grown. 2017-11-21 19:42:22 +01:00
statcache.c lib: Use messaging_send_all instead of message_send_all 2017-12-05 00:56:13 +01:00
statvfs.c
trans2.c s3: smbd: Unix extensions attempts to change wrong field in fchown call. 2018-04-10 00:45:56 +02:00
uid.c s3: smbd: always set vuid in check_user_ok() 2018-03-22 18:26:03 +01:00
utmp.c
vfs.c vfs: remove SMB_VFS_INIT_SEARCH_OP 2017-11-11 04:49:27 +01:00