diff options
author | Stefan Metzmacher <metze@samba.org> | 2019-07-16 15:40:38 +0200 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2019-08-27 13:16:24 +0200 |
commit | 962d4a98b50a3ce1d58ebc516e8de9335a14dfdb (patch) | |
tree | 607d2c4edc85a82fdd66c1783c4cdfa91c6db016 /selftest | |
parent | d1d48f20a25867e65f064f2c157222cdcb74658b (diff) | |
download | samba-962d4a98b50a3ce1d58ebc516e8de9335a14dfdb.tar.gz |
CVE-2019-10197: test_smbclient_s3.sh: add regression test for the no permission on share root problem
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14035
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'selftest')
-rw-r--r-- | selftest/knownfail.d/CVE-2019-10197 | 1 | ||||
-rwxr-xr-x | selftest/target/Samba3.pm | 12 |
2 files changed, 13 insertions, 0 deletions
diff --git a/selftest/knownfail.d/CVE-2019-10197 b/selftest/knownfail.d/CVE-2019-10197 new file mode 100644 index 00000000000..f7056bbf3ad --- /dev/null +++ b/selftest/knownfail.d/CVE-2019-10197 @@ -0,0 +1 @@ +^samba3.blackbox.smbclient_s3.*.noperm.share.regression diff --git a/selftest/target/Samba3.pm b/selftest/target/Samba3.pm index f7eb314138a..2f491441815 100755 --- a/selftest/target/Samba3.pm +++ b/selftest/target/Samba3.pm @@ -1516,6 +1516,9 @@ sub provision($$$$$$$$$) my $ro_shrdir="$shrdir/root-tmp"; push(@dirs,$ro_shrdir); + my $noperm_shrdir="$shrdir/noperm-tmp"; + push(@dirs,$noperm_shrdir); + my $msdfs_shrdir="$shrdir/msdfsshare"; push(@dirs,$msdfs_shrdir); @@ -1587,6 +1590,11 @@ sub provision($$$$$$$$$) ## + ## Create a directory without permissions to enter + ## + chmod 0000, $noperm_shrdir; + + ## ## create ro and msdfs share layout ## @@ -1902,6 +1910,10 @@ sub provision($$$$$$$$$) [ro-tmp] path = $ro_shrdir guest ok = yes +[noperm] + path = $noperm_shrdir + wide links = yes + guest ok = yes [write-list-tmp] path = $shrdir read only = yes |