tests/fake_snap: sanitize paths
commita379231ffb1ba5bf5ef5b041c9aa30f5251ad462
authorDavid Disseldorp via samba-technical <samba-technical@lists.samba.org>
Sat, 26 Aug 2017 21:40:37 +0000 (26 23:40 +0200)
committerKarolin Seeger <kseeger@samba.org>
Thu, 31 Aug 2017 14:14:33 +0000 (31 16:14 +0200)
treeda5f7da72c595567b2283c0969208f44489d3811
parent76da233af1693d38482527bf054ec364f8ed21e5
tests/fake_snap: sanitize paths

Ensure fake_snap.pl can be run in taint mode (-T), by sanitizing paths
and the PATH env. This fixes the following samba3.rpc.fsrvp selftest
failures:
Insecure dependency in mkdir while running setgid at (eval 2) line 4.
snap create failed: NT_STATUS_UNSUCCESSFUL
snap create failed for shadow copy of /home/ddiss/isms/samba/st/nt4_dc/share

Bug: https://bugzilla.samba.org/show_bug.cgi?id=12988

Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Tue Aug 29 04:54:51 CEST 2017 on sn-devel-144

(cherry picked from commit f9d4158f0b002b482df0a919d4cb337cce81f9f8)

Autobuild-User(v4-6-test): Karolin Seeger <kseeger@samba.org>
Autobuild-Date(v4-6-test): Thu Aug 31 16:14:33 CEST 2017 on sn-devel-144
source3/script/tests/fake_snap.pl