samba-tool: replace use of os.popen
authorUri Simchoni <uri@samba.org>
Sun, 15 Nov 2015 11:34:03 +0000 (13:34 +0200)
committerUri Simchoni <uri@samba.org>
Mon, 23 Nov 2015 21:19:34 +0000 (22:19 +0100)
commit22386dc39673f66de2dd57596447acf3c6c00ef7
treeeb3f5522d9b8762fa8427a4b54d8ac4385a7b155
parente6f88c1451f8843fca9ca361cd2dbdf3e77ff47c
samba-tool: replace use of os.popen

The netcmd/domain.py module uses os.popen() on user-supplied
parameters. This opens up the way to code injection.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=11601

Signed-off-by: Uri Simchoni <uri@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
Autobuild-User(master): Uri Simchoni <uri@samba.org>
Autobuild-Date(master): Mon Nov 23 22:19:34 CET 2015 on sn-devel-104
python/samba/netcmd/domain.py