bandit/examples/os-spawn.py
Jamie Finnigan cd7a2df127 Modify call_bad_names test to use regex and add to blacklist
This modifies the test performed in call_bad_names to use re.match, adds
additional functions to the blacklist, and adds examples that trigger those
new blacklist entries.

It is an intial pass at addressing https://github.com/chair6/bandit/issues/6,
but further changes will be required to clean this up, including separating
configuration from test code.
2014-07-25 11:10:03 -07:00

11 lines
239 B
Python

import os
os.spawnl(mode, path)
os.spawnle(mode, path, env)
os.spawnlp(mode, file)
os.spawnlpe(mode, file, env)
os.spawnv(mode, path, args)
os.spawnve(mode, path, args, env)
os.spawnvp(mode, file, args)
os.spawnvpe(mode, file, args, env)