Skip to content

Commit

Permalink
Minor changes in sandbox plugin.
Browse files Browse the repository at this point in the history
  • Loading branch information
viferga committed Mar 6, 2024
1 parent 759e16f commit 7c1f2f6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/plugins/sandbox_plugin/source/sandbox_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@
#define SANDBOX_SIGNALS_ERROR "Sandbox plugin failed to set signals syscalls permissions"
#define SANDBOX_DESTROY_ERROR "Sandbox plugin failed to destroy a context"

void add_syscalls_to_seccomp(scmp_filter_ctx ctx, const int *syscalls, const int action, size_t num_syscalls)
void add_syscalls_to_seccomp(scmp_filter_ctx ctx, const int *syscalls, const int action, size_t size)
{
for (long unsigned int i = 0; i < num_syscalls; i++)
for (size_t iterator = 0; iterator < size; ++iterator)
{
seccomp_rule_add(ctx, action, syscalls[i], 0);
seccomp_rule_add(ctx, action, syscalls[iterator], 0);
}
}

Expand Down

0 comments on commit 7c1f2f6

Please sign in to comment.