[CRIU] [PATCH 5/7] test: Add a test for c/r of seccomp filters
Tycho Andersen
tycho.andersen at canonical.com
Wed Nov 11 07:25:14 PST 2015
On Wed, Nov 11, 2015 at 04:44:49PM +0300, Pavel Emelyanov wrote:
> On 11/04/2015 09:04 AM, Tycho Andersen wrote:
> > From: Tycho Andersen <tycho at tycho.ws>
> >
> > Signed-off-by: Tycho Andersen <tycho.andersen at canonical.com>
> > ---
> > test/zdtm.sh | 9 ++
> > test/zdtm/.gitignore | 1 +
> > test/zdtm/live/static/Makefile | 1 +
> > test/zdtm/live/static/seccomp_filter.c | 171 +++++++++++++++++++++++++++++++++
> > 4 files changed, 182 insertions(+)
> > create mode 100644 test/zdtm/live/static/seccomp_filter.c
> >
> > diff --git a/test/zdtm.sh b/test/zdtm.sh
> > index e8ec737..bd6cd24 100755
> > --- a/test/zdtm.sh
> > +++ b/test/zdtm.sh
> > @@ -244,6 +244,9 @@ generate_test_list()
> > static/seccomp_strict
> > "
> >
> > + TEST_SECCOMP_FILTERS="
> > + static/seccomp_filter
> > + "
> >
> > $CRIU check -v0 --feature "mnt_id"
> > if [ $? -eq 0 ]; then
> > @@ -272,6 +275,11 @@ generate_test_list()
> > TEST_LIST="$TEST_LIST$TEST_SECCOMP_SUSPEND"
> > fi
> >
> > + $CRIU check -v0 --feature "seccomp_filters"
> > + if [ $? -eq 0 ]; then
> > + TEST_LIST="$TEST_LIST$TEST_SECCOMP_FILTERS"
> > + fi
>
> Then there should also exist a .desc file for this test that
> allows zdtm.py to properly find out the restrictions for it.
Ok, sounds good. I'll make the change and resend all the tests.
Tycho
More information about the CRIU
mailing list