diff --git a/src/rules/c_cpp.c b/src/rules/c_cpp.c index 757cf8d..fd77c53 100644 --- a/src/rules/c_cpp.c +++ b/src/rules/c_cpp.c @@ -46,6 +46,15 @@ int _c_cpp_seccomp_rules(struct config *_config, bool allow_write_file) { if (seccomp_rule_add(ctx, SCMP_ACT_ALLOW, SCMP_SYS(open), 0) != 0) { return LOAD_SECCOMP_FAILED; } + if (seccomp_rule_add(ctx, SCMP_ACT_ALLOW, SCMP_SYS(dup), 0) != 0) { + return LOAD_SECCOMP_FAILED; + } + if (seccomp_rule_add(ctx, SCMP_ACT_ALLOW, SCMP_SYS(dup2), 0) != 0) { + return LOAD_SECCOMP_FAILED; + } + if (seccomp_rule_add(ctx, SCMP_ACT_ALLOW, SCMP_SYS(dup3), 0) != 0) { + return LOAD_SECCOMP_FAILED; + } } if (seccomp_load(ctx) != 0) { return LOAD_SECCOMP_FAILED;