From: Vitaly _Vi Shukela <[email protected]>

---
 tests/03-sim-basic_chains.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/tests/03-sim-basic_chains.c b/tests/03-sim-basic_chains.c
index 6e7309b..9c1eb1d 100644
--- a/tests/03-sim-basic_chains.c
+++ b/tests/03-sim-basic_chains.c
@@ -44,8 +44,9 @@ int main(int argc, char *argv[])
        if (rc != 0)
                goto out;
 
-       rc = seccomp_rule_add_exact(ctx, SCMP_ACT_ALLOW, SCMP_SYS(write), 1,
-                                   SCMP_A0(SCMP_CMP_EQ, STDOUT_FILENO));
+       struct scmp_arg_cmp filters[1] = { SCMP_A0(SCMP_CMP_EQ, STDOUT_FILENO) 
};
+       rc = seccomp_rule_add_array_exact(ctx, SCMP_ACT_ALLOW, SCMP_SYS(write), 
1,
+                                   filters);
        if (rc != 0)
                goto out;
 
@@ -54,7 +55,7 @@ int main(int argc, char *argv[])
        if (rc != 0)
                goto out;
 
-       rc = seccomp_rule_add_exact(ctx, SCMP_ACT_ALLOW, SCMP_SYS(close), 0);
+       rc = seccomp_rule_add_array_exact(ctx, SCMP_ACT_ALLOW, SCMP_SYS(close), 
0, NULL);
        if (rc != 0)
                goto out;
 
-- 
1.7.11.6.1.gada05e2


------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
libseccomp-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libseccomp-discuss

Reply via email to