1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-05 09:18:06 +03:00
samba-mirror/source3/script
Volker Lendecke 8ff2fe33bd smbd: Userspace symlink eval in filename_convert_dirfsp()
This converts filename_convert_dirfsp to do symlink evaluation in user
space. It uses openat_pathref_dirfsp_nosymlink() to open the dirpath
and looks at the proper NT_STATUS_STOPPED_ON_SYMLINK response. Using
this avoids filename_convert() and thus unix_convert() completely for
the SMB2_CREATE case.

The tests

samba3.blackbox.smbclient_s3.NT1.plain.Recursive ls across MS-DFS links

now correctly stop the symlink lookup recursion with
NT_STATUS_OBJECT_PATH_NOT_FOUND. Previously we did not correcly pass up the
ELOOP coming back from the stat-call.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>

Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Mon Jul 25 12:56:08 UTC 2022 on sn-devel-184
2022-07-25 12:56:08 +00:00
..
tests smbd: Userspace symlink eval in filename_convert_dirfsp() 2022-07-25 12:56:08 +00:00
count_80_col.pl
creategroup s3:script: Reformat shell scripts 2022-03-03 01:53:16 +00:00
fix_bool.pl
format_indent.sh
makeunicodecasemap.awk
mknissmbpasswd.sh s3:script: Reformat shell scripts 2022-03-03 01:53:16 +00:00
mknissmbpwdtbl.sh s3:script: Reformat shell scripts 2022-03-03 01:53:16 +00:00
mksmbpasswd.sh
mksyms.awk
mksyms.sh s3:script: Reformat shell scripts 2022-03-03 01:53:16 +00:00
scancvslog.pl
smbaddshare Remove some bashisms from the test scripts 2018-02-19 07:36:23 +01:00
smbchangeshare Remove some bashisms from the test scripts 2018-02-19 07:36:23 +01:00
smbdeleteshare Remove some bashisms from the test scripts 2018-02-19 07:36:23 +01:00
smbtar s3:script: Reformat shell scripts 2022-03-03 01:53:16 +00:00
strip_trail_ws.pl
updatesmbpasswd.sh
wscript_build s3:script: Remove findsmb from default installation 2021-04-19 14:37:04 +00:00