diff options
author | root <root@test-ubuntu_x86-1.lan> | 2019-03-01 17:01:23 -0500 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2019-03-01 17:04:21 -0500 |
commit | 584ca7a5e69d87a4c2c4e4c07ce8415fa59e1351 (patch) | |
tree | c74c18da9961104459f4dfb08091e43f6d2dd04c /tests/46-sim-kill_process.c | |
parent | 7bbba09c81e1ddf74e863cc14d31ad1dbd747475 (diff) | |
download | libseccomp-584ca7a5e69d87a4c2c4e4c07ce8415fa59e1351.tar.gz |
tests: fix a number of problems with the tests on a 32-bit x86 system
Verified on a 32-bit x86 Ubuntu 16.04.6 system.
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'tests/46-sim-kill_process.c')
-rw-r--r-- | tests/46-sim-kill_process.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/46-sim-kill_process.c b/tests/46-sim-kill_process.c index 7ab0725..961a047 100644 --- a/tests/46-sim-kill_process.c +++ b/tests/46-sim-kill_process.c @@ -36,6 +36,10 @@ int main(int argc, char *argv[]) if (rc < 0) goto out; + rc = seccomp_api_set(3); + if (rc != 0) + return -rc; + ctx = seccomp_init(SCMP_ACT_KILL_PROCESS); if (ctx == NULL) return ENOMEM; |