

@test.takes_config
@test.checks('Call')
@test.test_id('B111')
def execute_with_run_as_root_equals_true(context, config):
    if (context.call_function_name_qual in config['function_names']):
        if context.check_call_arg_value('run_as_root', 'True'):
            return bandit.Issue(severity=bandit.LOW, confidence=bandit.MEDIUM, text='Execute with run_as_root=True identified, possible security issue.', lineno=context.get_lineno_for_call_arg('run_as_root'))

dataset/ETHPy150Open openstack/bandit/bandit/plugins/exec_as_root.py execute_with_run_as_root_equals_true/original