Skip to content

Conversation

@dotoleeoak
Copy link
Member

@dotoleeoak dotoleeoak commented Mar 26, 2025

기존의 exec.Command 대신 isolate를 이용해서 sandbox 내에 코드를 격리하여 실행합니다.

TODO: 실행 시간 및 리소스 제한하기

Demo: http://13.209.42.247/

isolate 실행법

isolate --init  # 초기화
isolate --run -- <binary>
isolate --cleanup

Testing

1. fork()

image

2. Access directory

isolate에서 접근 허용하는 디렉토리만 출력됨

image

@dotoleeoak dotoleeoak requested a review from donghun1214 March 26, 2025 12:08
@dotoleeoak dotoleeoak self-assigned this Mar 26, 2025
Copy link
Contributor

@donghun1214 donghun1214 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

그는 갓인가..??

@dotoleeoak dotoleeoak merged commit 9545808 into main Mar 26, 2025
3 checks passed
@dotoleeoak dotoleeoak deleted the run-code-in-docker-sandbox branch March 28, 2025 12:36
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

Successfully merging this pull request may close these issues.

2 participants