1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-31 17:18:04 +03:00
samba-mirror/source3/smbd
Ralph Boehme 6d928eb1e8 smbd: only open full fd for directories if needed
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14700
RN: File owner not available when file unreadable

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

Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Mon Aug  2 18:05:04 UTC 2021 on sn-devel-184
2021-08-02 18:05:04 +00:00
..
notifyd smbd: Fix the 32-bit build on FreeBSD 2020-11-30 22:24:38 +00:00
aio.c smbd: use fh_[get|set]_pos() and fh_[get|set]_position_information() 2020-12-16 09:08:30 +00:00
avahi_register.c s3-smbd: use fruit:model string for mDNS registration 2019-01-15 21:27:20 +01:00
blocking.c locking: Make share_mode_watch_send() take "share_mode_lock" 2020-11-10 19:49:34 +00:00
close.c s3: smbd: Now all callers of is_visible_fsp() pass 'false' for the use_veto parameter, remove it. 2021-06-09 13:14:30 +00:00
conn_idle.c smbd: In conn_force_tdis_done() when forcing a connection closed force a full reload of services. 2021-01-28 07:03:30 +00:00
conn_msg.c smbd: Add close-denied-share message 2020-01-15 21:25:35 +00:00
conn.c s3: smbd: Factor out setting up case parameters for a share to a function - conn_setup_case_options(). 2021-01-13 17:02:34 +00:00
connection.c s3:param: make "servicename" a substituted option 2019-11-27 10:25:37 +00:00
dfree.c smbdotconf: mark "dfree command" with substitution="1" 2019-11-27 10:25:32 +00:00
dir.c s3: smbd: Don't leak meta-data about the containing directory of the share root. 2021-07-28 15:07:54 +00:00
dmapi.c
dnsregister.c
dosmode.c s3: smbd: Allow async dosmode to cope with ".." pathnames where we close smb_fname->fsp to prevent meta-data leakage. 2021-07-28 14:16:31 +00:00
durable.c s3: smbd: Pass full fsp to file_ntimes() 2021-04-19 12:28:30 +00:00
error.c
fake_file.c smbd: add dosmode_from_fake_filehandle() 2021-06-09 19:47:34 +00:00
fd_handle_private.h vfs: make struct fd_handle private 2020-12-16 09:08:30 +00:00
fd_handle.c vfs: make struct fd_handle private 2020-12-16 09:08:30 +00:00
fd_handle.h smbd: add fd_handle.[c|h] 2020-12-16 09:08:30 +00:00
file_access.c s3: smbd: smbd_check_access_rights_fsp(). Add dirfsp parameter. 2021-06-09 13:14:31 +00:00
fileio.c smbd: use fdos_mode() in mark_file_modified() 2020-12-16 09:08:31 +00:00
filename.c smbd: return correct timestamps for quota fake file 2021-06-09 20:38:02 +00:00
files.c smbd: update smb_fname statinfo from fsp 2021-07-14 08:09:31 +00:00
globals.c smbd: let smbd_request_guid() use smb1req->xconn->channel_id 2021-03-06 02:20:05 +00:00
globals.h s3:smbd: implement FSCTL_SMBTORTURE_GLOBAL_READ_RESPONSE_BODY_PADDING8 2021-07-15 23:04:34 +00:00
ipc.c Revert "smbd: add an effective {smb,smbd_smb2}_request->ev_ctx that holds the event context used for the request processing" 2019-01-11 23:11:16 +01:00
lanman.c s3:smbd: Initialize command for spools printer control 2021-05-20 11:12:28 +00:00
mangle_hash2.c smbd: Save 520 bytes of writable memory from every smbd 2019-10-23 02:37:12 +00:00
mangle_hash.c
mangle.c smbdotconf: mark "mangling method" with constant="1" 2019-11-27 10:25:37 +00:00
message.c smbdotconf: mark "message command" with substitution="1" 2019-11-27 10:25:35 +00:00
msdfs.c s3: smbd: In dfs_path_lookup(), use relative dirfsp, atname lookups in SMB_VFS_READ_DFS_PATHAT() for the pathname walk fallback. 2021-07-14 08:09:31 +00:00
negprot.c s3: safe_string: do not include string_wrappers.h 2020-08-28 00:56:34 +00:00
notify_fam.c
notify_inotify.c smbd: Align two integer types 2020-11-04 18:55:39 +00:00
notify_msg.c notifyd: Factor out notify_walk() into its own file 2020-10-24 05:57:31 +00:00
notify.c s3: smbd: smbd_check_access_rights_fsp(). Add dirfsp parameter. 2021-06-09 13:14:31 +00:00
ntquotas.c smbd: add twrp arg to synthetic_smb_fname() 2020-05-05 19:18:40 +00:00
nttrans.c s3: smbd: Cleanup - rename get_ea_names_from_file() -> get_ea_names_from_fsp(). 2021-06-25 16:37:59 +00:00
open.c smbd: only open full fd for directories if needed 2021-08-02 18:05:04 +00:00
oplock_linux.c smbd: use fh_[get|set]_gen_id() 2020-12-16 09:08:30 +00:00
oplock.c smbd: use fh_[get|set]_gen_id() 2020-12-16 09:08:30 +00:00
password.c smbd: RIP user_struct 2020-01-13 21:09:01 +00:00
perfcount.c smbdotconf: mark "perfcount module" with substitution="1" 2019-11-27 10:25:36 +00:00
pipes.c smbd: use fsp_set_fd() 2020-12-16 09:08:30 +00:00
posix_acls.c s3: smbd: Explicitly code the semantics of "dos filemode" into the chown code. 2021-07-13 08:11:36 +00:00
process.c smbd: introduce a smbXsrv_connection_destructor() 2021-03-06 02:20:05 +00:00
proto.h s3: smbd: In is_msdfs_link(), change to dirfsp, atname parameters. 2021-07-14 08:09:31 +00:00
pysmbd.c s3: smbd: get_nt_acl_conn(), SMB_VFS_GET_NT_ACL_AT() -> SMB_VFS_FGET_NT_ACL() 2021-06-09 13:14:30 +00:00
quotas.c quotas: Check group quota for directory when SGID is set 2019-08-14 16:27:43 +00:00
reply.c s3: smbd: Make SMB_VFS_RENAMEAT() a relative call. 2021-06-22 13:44:34 +00:00
scavenger.c smbd: Use share_mode_servicepath() in scavenger.c 2020-11-10 19:49:35 +00:00
scavenger.h
seal.c
sec_ctx.c
server_exit.c lib: give global_contexts.c its own header file 2021-01-08 20:31:33 +00:00
server_reload.c printing: Introduce printer_list_printername_exists() 2021-03-16 17:09:31 +00:00
server.c s3: Remove --log-stdout from daemons 2021-04-29 03:58:37 +00:00
service.c s3: smbd: Factor out setting up case parameters for a share to a function - conn_setup_case_options(). 2021-01-13 17:02:34 +00:00
session.c s3:smbd: fix SAFE_FREE() vs. TALLOC_FREE() in list_sessions() 2019-03-28 23:09:33 +00:00
sesssetup.c smbd: Fix a typo 2021-04-19 18:18:31 +00:00
share_access.c s3:smbd: Remove NIS support 2021-04-22 17:57:30 +00:00
signing.c s3:smbd: Return NTSTATUS for srv_calculate_sign_mac() 2019-05-21 00:03:22 +00:00
smb1_utils.c smbd: add need_fsa arg and logic to file_find_di_(first|next) 2020-12-16 09:08:31 +00:00
smb1_utils.h lib: Move send_keepalive() to smbd/smb1_utils.c 2020-08-17 19:35:37 +00:00
smb2_break.c s3:smbd: pass down smbXsrv_client to smbd_smb2_send_{oplock,lease}_break() 2020-07-08 15:54:40 +00:00
smb2_close.c smbd: correctly initialize close timestamp fields 2021-05-24 16:56:22 +00:00
smb2_create.c s3: smbd: smbd_calculate_access_mask_fsp(). Add dirfsp parameter. 2021-06-09 13:14:31 +00:00
smb2_flush.c smbd: use fsp_get_io_fd() when accessing a file or it's associated metadata 2020-12-16 09:08:30 +00:00
smb2_getinfo.c smbd: use fsp_get_pathref_fd() for fstat() calls 2020-12-16 09:08:30 +00:00
smb2_glue.c s3:smbd: implement FSCTL_SMBTORTURE_FORCE_UNACKED_TIMEOUT 2020-07-08 15:54:40 +00:00
smb2_ioctl_dfs.c
smb2_ioctl_filesys.c smbd: use sys_io_ranges_overlap() in fsctl_dup_extents_check_overlap() 2021-06-30 16:51:29 +00:00
smb2_ioctl_named_pipe.c Revert "smbd: add an effective {smb,smbd_smb2}_request->ev_ctx that holds the event context used for the request processing" 2019-01-11 23:11:16 +01:00
smb2_ioctl_network_fs.c smbd: Align integer types 2020-11-10 19:49:33 +00:00
smb2_ioctl_private.h smbd: implement FSCTL_SMBTORTURE_IOCTL_RESPONSE_BODY_PADDING8 as reproducer for bug 14607 2021-01-15 07:26:29 +00:00
smb2_ioctl.c s3:smbd: implement FSCTL_SMBTORTURE_GLOBAL_READ_RESPONSE_BODY_PADDING8 2021-07-15 23:04:34 +00:00
smb2_keepalive.c
smb2_lock.c locking: Make share_mode_watch_send() take "share_mode_lock" 2020-11-10 19:49:34 +00:00
smb2_negprot.c libcli/smb: actually make use of "client/server smb3 signing algorithms" 2021-07-15 00:06:31 +00:00
smb2_notify.c smbd: Use NT_STATUS_NOTIFY_ENUM_DIR instead of STATUS_NOTIFY_ENUM_DIR 2020-06-22 12:07:38 +00:00
smb2_query_directory.c smbd: pass a dirfsp to fd_open() and rename it to fd_openat() 2020-12-16 09:08:30 +00:00
smb2_read.c s3:smbd: implement FSCTL_SMBTORTURE_GLOBAL_READ_RESPONSE_BODY_PADDING8 2021-07-15 23:04:34 +00:00
smb2_server.c s3:smbd: make sure we don't try to sign CANCEL response PDUs 2021-07-15 00:06:31 +00:00
smb2_sesssetup.c s3:smbd: really support AES-256* in the server 2021-07-20 16:13:28 +00:00
smb2_setinfo.c s3: smbd: fix deferred renames 2021-03-31 06:13:39 +00:00
smb2_tcon.c smb2_tcon: also try to cancel pending compound requests on tdis 2021-03-29 20:43:28 +00:00
smb2_write.c s3:smbd - support streams larger than 64 KiB 2021-05-10 20:16:21 +00:00
smbd_cleanupd.c smbd: Remove unused brlock code 2019-06-20 17:18:19 +00:00
smbd_cleanupd.h
smbd.h smbd: add fd_handle.[c|h] 2020-12-16 09:08:30 +00:00
smbXsrv_client.c smbXsrv_client: move the connection passing to smb2srv_client_mc_negprot_send/recv 2021-03-06 03:30:06 +00:00
smbXsrv_open.c smbXsrv_{open,session,tcon}: protect smbXsrv_{open,session,tcon}_global_traverse_fn against invalid records 2021-07-06 11:08:43 +00:00
smbXsrv_session.c s3:smbd: make sure smbXsrv_session_update() doesn't segfault with table == NULL 2021-07-15 00:06:31 +00:00
smbXsrv_tcon.c smbXsrv_{open,session,tcon}: protect smbXsrv_{open,session,tcon}_global_traverse_fn against invalid records 2021-07-06 11:08:43 +00:00
smbXsrv_version.c
srvstr.c s3: safe_string: do not include string_wrappers.h 2020-08-28 00:56:34 +00:00
statcache.c smbd: strip @GMT token in canonicalize_snapshot_path() 2020-05-05 19:18:43 +00:00
statvfs.c
trans2.c s3: smbd: Allow "smbd async dosmode = yes" to return valid DOS attributes again. 2021-07-15 05:02:30 +00:00
uid.c smbd: call set_current_user_info() in smbd_become_authenticated_pipe_user() 2021-03-12 00:54:01 +00:00
utmp.c
vfs.c vfs: RIP SMB_VFS_GETXATTR() 2021-07-04 17:15:35 +00:00