Skip to content

Commit

Permalink
restricte file function
Browse files Browse the repository at this point in the history
  • Loading branch information
saksham2105 committed Jul 11, 2024
1 parent 521f21c commit 15334bb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/src/main/resources/python/untrusted_code_validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ class ConductorBuiltInRestrictor(ast.NodeVisitor):
'globals', 'hasattr', 'hash', 'help', 'id', 'input', 'isinstance',
'issubclass', 'iter', 'locals', 'map', 'memoryview',
'next', 'object', 'property', 'repr', 'reversed',
'setattr', 'sorted', 'staticmethod', 'vars', 'zip', 'reload', 'exit', 'quit'
'setattr', 'sorted', 'staticmethod', 'vars', 'zip', 'reload', 'exit', 'quit',
'file'
}

def visit_Import(self, node):
Expand Down

0 comments on commit 15334bb

Please sign in to comment.