Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I hope read/write file,set ALLOWED_SYSCALLS= 0,1,2,......500, But it didn't take effect. #92

Open
zhuzcalex opened this issue Sep 26, 2024 · 0 comments

Comments

@zhuzcalex
Copy link

I hope read/write file
I set env ALLOWED_SYSCALLS= 0,1,2,......500, But it didn't take effect.

Python code:

def main(arg2: str) -> dict:
    import time
    file_name = f'{time.time()}.txt'
    with open(file_name, 'w') as f:
        f.write(arg1)
    return {
         "file_name": file_name
    }

error log:

FileNotFoundError:[Errno 2] No such file or directory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant