diff options
Diffstat (limited to 'tests/06-sim-actions.c')
-rw-r--r-- | tests/06-sim-actions.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/tests/06-sim-actions.c b/tests/06-sim-actions.c index 4dbe19f..0490783 100644 --- a/tests/06-sim-actions.c +++ b/tests/06-sim-actions.c @@ -40,21 +40,19 @@ int main(int argc, char *argv[]) if (ctx == NULL) return ENOMEM; - rc = seccomp_rule_add_exact(ctx, SCMP_ACT_ALLOW, SCMP_SYS(read), 0); + rc = seccomp_rule_add(ctx, SCMP_ACT_ALLOW, SCMP_SYS(read), 0); if (rc != 0) goto out; - rc = seccomp_rule_add_exact(ctx, - SCMP_ACT_ERRNO(EPERM), SCMP_SYS(write), 0); + rc = seccomp_rule_add(ctx, SCMP_ACT_ERRNO(EPERM), SCMP_SYS(write), 0); if (rc != 0) goto out; - rc = seccomp_rule_add_exact(ctx, SCMP_ACT_TRAP, SCMP_SYS(close), 0); + rc = seccomp_rule_add(ctx, SCMP_ACT_TRAP, SCMP_SYS(close), 0); if (rc != 0) goto out; - rc = seccomp_rule_add_exact(ctx, - SCMP_ACT_TRACE(1234), SCMP_SYS(open), 0); + rc = seccomp_rule_add(ctx, SCMP_ACT_TRACE(1234), SCMP_SYS(open), 0); if (rc != 0) goto out; |