1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
samba-mirror/source3
Stefan Metzmacher a843e74b85 vfs_preopen: only try to preopen if we can construct an absolute path
So we make sure the dirfsp contains an absolute path to begin with
and smb_fname is a relative name within the directory.

Note: dirfsp->fsp_name->base_name[0] is only '/' because currently all callers pass
conn->cwd_fsp as dirfsp ... though there's already one caller that calls
fd_openat() with a real dirfsp, that is in vfs_fruit though on the
resource fork stream so doesn't really effect us currently.

If more callers are changed in future the situation may change,
but I guess then this is not the only place with potential problems.
We most likely need a generic helper function that returns the absolute
path of a dirfsp and use it here.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
2021-07-01 13:02:31 +00:00
..
auth s3:auth: Check return code of cli_credentials_set_conf() 2021-06-29 02:19:35 +00:00
build
client s3:client: Use samba_popt_get_context() 2021-05-20 02:58:36 +00:00
exports
groupdb lib: relicense smb_strtoul(l) under LGPLv3 2020-08-03 22:21:02 +00:00
include VFS: Remove SMB_VFS_CHFLAGS, not used anymore 2021-06-29 08:21:38 +00:00
intl
lib s3:lib: add samba_path_matching_regex_sub1_create() 2021-07-01 13:02:31 +00:00
libads auth:creds: Add obtained arg to cli_credentials_set_kerberos_state() 2021-04-28 03:43:34 +00:00
libgpo/gpext
libnet libnet: Initialize pointers 2021-06-04 16:47:34 +00:00
librpc idl: secrets_domain_info1_change is not a recursive structure 2021-06-29 03:07:17 +00:00
libsmb s3:libsmb: Check return code of cli_credentials_guess() 2021-06-29 02:19:35 +00:00
locale pam_winbind/ro.po: fix error from previous patch merge 2020-10-29 20:49:16 +00:00
locking smbd: Simplify share_mode_entry_do() 2021-06-04 16:47:34 +00:00
modules vfs_preopen: only try to preopen if we can construct an absolute path 2021-07-01 13:02:31 +00:00
nmbd nmbd: Reduce the wait interface loop sleep time 2021-05-14 20:52:47 +00:00
param docs-xml: Disable winbind scan trusted domains by default 2021-06-23 09:56:37 +00:00
passdb s3:passdb: Check return code of cli_credentials_set_conf() 2021-06-29 02:19:35 +00:00
printing printing: Factor out remove_from_jobs_list() 2021-06-04 16:47:34 +00:00
profile
registry registry: Fix a typo 2021-04-19 18:18:31 +00:00
rpc_client Fix gcc11 compiler issue "-Werror=maybe-uninitialized" 2021-05-07 06:23:32 +00:00
rpc_server mdssvc: avoid direct filesystem access, use the VFS 2021-06-16 05:59:12 +00:00
rpcclient s3:rpcclient: Document command of witness protocol 2021-05-25 00:23:37 +00:00
script testprogs: Use new kerberos options for smbclient(4) tests 2021-06-16 00:34:38 +00:00
selftest s3:lib: add samba_path_matching_regex_sub1_create() 2021-07-01 13:02:31 +00:00
services
smbd smbd: use sys_io_ranges_overlap() in fsctl_dup_extents_check_overlap() 2021-06-30 16:51:29 +00:00
torture s3:lib: add samba_path_matching_regex_sub1_create() 2021-07-01 13:02:31 +00:00
utils s3:utils: Use connection and credentials parser in net util 2021-05-28 02:55:31 +00:00
web
winbindd s3:winbindd: Check return code of cli_credentials_set_conf() 2021-06-29 02:19:35 +00:00
.clang_complete
.dmallocrc
.indent.pro
Doxyfile
mainpage.dox
smbadduser.in
wscript VFS: Add initial implemenataion for SMB_VFS_FCHFLAGS 2021-06-29 08:21:37 +00:00
wscript_build s3:lib: add a new samba_path_matching* infrastructure 2021-07-01 13:02:31 +00:00
wscript_configure_system_ncurses