diff options
author | Jeremy Allison <jra@samba.org> | 2017-03-27 11:48:25 -0700 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2017-03-29 10:24:14 +0200 |
commit | 161a078f550f4c9a50a8f42e29b1f27de689362b (patch) | |
tree | 4addfa98a61c2222d9dfb250ee30f2a006929cf4 /selftest | |
parent | 4a6d828e8f230ab6578c73bba7eec06ece6f7fac (diff) | |
download | samba-161a078f550f4c9a50a8f42e29b1f27de689362b.tar.gz |
s3: Test for CVE-2017-2619 regression with "follow symlinks = no".
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12721
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Uri Simchoni <uri@samba.org>
Back-ported from commit 782172a9bef0040981d20e49519b13dd744df6a0
Diffstat (limited to 'selftest')
-rwxr-xr-x | selftest/target/Samba3.pm | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/selftest/target/Samba3.pm b/selftest/target/Samba3.pm index 619ae1eafaa..938c4595552 100755 --- a/selftest/target/Samba3.pm +++ b/selftest/target/Samba3.pm @@ -1191,6 +1191,9 @@ sub provision($$$$$$$$) my $shadow_shrdir="$shadow_basedir/share"; push(@dirs,$shadow_shrdir); + my $nosymlinks_shrdir="$shrdir/nosymlinks"; + push(@dirs,$nosymlinks_shrdir); + # this gets autocreated by winbindd my $wbsockdir="$prefix_abs/winbindd"; my $wbsockprivdir="$lockdir/winbindd_privileged"; @@ -1717,6 +1720,10 @@ sub provision($$$$$$$$) copy = tmp acl_xattr:ignore system acls = yes acl_xattr:default acl style = windows +[nosymlinks] + copy = tmp + path = $nosymlinks_shrdir + follow symlinks = no [kernel_oplocks] copy = tmp kernel oplocks = yes |