On Wednesday, February 13, 2013 11:42:59 PM [email protected] wrote:
> From: Vitaly _Vi Shukela <[email protected]>
I was thinking that you would add a new test file that exercises the new
_array() functions.
> ---
> 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;
--
paul moore
security and virtualization @ redhat
------------------------------------------------------------------------------
The Go Parallel Website, sponsored by Intel - in partnership with Geeknet,
is your hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials, tech docs,
whitepapers, evaluation guides, and opinion stories. Check out the most
recent posts - join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
libseccomp-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libseccomp-discuss