Resolve issues reported by bandit

This commit is contained in:
Brendan Reilly
2022-03-22 15:01:52 -04:00
parent 5066752004
commit d4c213d678
11 changed files with 19 additions and 15 deletions

View File

@@ -459,7 +459,9 @@ class MockModuleBuilder(GenericBuilder):
config_opts = {}
code = compile(f.read(), infile, "exec")
# pylint: disable=exec-used
exec(code)
# exec is not being called with user input
# only used for local builds, never on the server
exec(code) # nosec
self.groups = config_opts["chroot_setup_cmd"].split(" ")[1:]
self.yum_conf = config_opts["yum.conf"]