From: Paul Moore <[email protected]>
Signed-off-by: Paul Moore <[email protected]>
---
tests/15-basic-resolver.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/tests/15-basic-resolver.c b/tests/15-basic-resolver.c
index b3c94978..9582bc3f 100644
--- a/tests/15-basic-resolver.c
+++ b/tests/15-basic-resolver.c
@@ -27,6 +27,7 @@
int main(int argc, char *argv[])
{
+ int rc;
char *name = NULL;
if (seccomp_syscall_resolve_name("open") != __NR_open)
@@ -62,6 +63,10 @@ int main(int argc, char *argv[])
goto fail;
free(name);
+ rc = seccomp_syscall_resolve_name_rewrite(SCMP_ARCH_NATIVE, "openat");
+ if (rc != __NR_openat)
+ goto fail;
+
return 0;
fail:
--
You received this message because you are subscribed to the Google Groups
"libseccomp" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.