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

full #7

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

full #7

wants to merge 1 commit into from

Conversation

PaRat07
Copy link
Collaborator

@PaRat07 PaRat07 commented Sep 20, 2024

Теперь тестируемуму файлу запрещен доступ интернет. Это реализовано через seccomp с использованием библиотеки libseccomp.


scmp_filter_ctx GetFilter() {
scmp_filter_ctx ctx = seccomp_init(SCMP_ACT_ALLOW);
seccomp_rule_add(ctx, SCMP_ACT_KILL, SCMP_SYS(socket), 0);
Copy link
Member

Choose a reason for hiding this comment

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

А где другие правила?

@difhel
Copy link
Member

difhel commented Sep 20, 2024

Название ПР

@difhel difhel assigned PaRat07 and unassigned difhel Sep 20, 2024
@difhel
Copy link
Member

difhel commented Sep 24, 2024

@PaRat07 а глянь, пожалуйста, что именно блокирует seccomp в ejudge, эти фильтры стоит перенести

@difhel
Copy link
Member

difhel commented Sep 26, 2024

@PaRat07

@Spotika Spotika requested a review from Copilot November 19, 2024 18:41

Choose a reason for hiding this comment

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

Copilot wasn't able to review any files in this pull request.

Files not reviewed (7)
  • CMakeLists.txt: Language not supported
  • include/runner/init-seccomp.h: Language not supported
  • include/runner/runner.h: Language not supported
  • main.cpp: Language not supported
  • src/init-seccomp.cpp: Language not supported
  • src/message_assert.cpp: Language not supported
  • src/runner.cpp: Language not supported
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