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 d385058ce7 CVE-2022-3592 smbd: Slightly simplify filename_convert_dirfsp()
subdir_of() calculates the share-relative rest for us, don't do the
strlen(connectpath) calculation twice. subdir_of() also checks that
the target properly ends on a directory. With just strncmp a symlink
to x->/aa/etc would qualify as in share /a, so a "get x/passwd" leads to a
pretty unfortunate result. This is the proper fix for bug 15207, so we
need to change the expected error code to OBJECT_PATH_NOT_FOUND

Bug: https://bugzilla.samba.org/show_bug.cgi?id=15207
Signed-off-by: Volker Lendecke <vl@samba.org>

Autobuild-User(master): Jule Anger <janger@samba.org>
Autobuild-Date(master): Tue Oct 25 11:27:02 UTC 2022 on sn-devel-184
2022-10-25 11:27:02 +00:00
..
tests CVE-2022-3592 smbd: Slightly simplify filename_convert_dirfsp() 2022-10-25 11:27:02 +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: Fix shellcheck errors in mksyms.sh 2022-08-22 14:20:36 +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