diff options
author | Marcin Juszkiewicz <mjuszkiewicz@redhat.com> | 2014-08-21 17:30:40 +0200 |
---|---|---|
committer | Paul Moore <pmoore@redhat.com> | 2014-08-27 09:58:53 -0400 |
commit | ab63dc7fec3d4e5552bf5f363231c3fe1a7436d7 (patch) | |
tree | 7003af1139733b37177ee1170e52791ad4c15a89 /tests/06-sim-actions.c | |
parent | 52085b7dddf779746373e35d5c70546cc3633553 (diff) | |
download | libseccomp-ab63dc7fec3d4e5552bf5f363231c3fe1a7436d7.tar.gz |
arch: Add AArch64 support
This patch adds support for AArch64 (64-bit ARM) architecture.
Signed-off-by: Marcin Juszkiewicz <mjuszkiewicz@redhat.com>
(Additional fixes/corrections/etc.)
Signed-off-by: Paul Moore <pmoore@redhat.com>
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; |