[PATCH RFC v2 3/3] tests: test cases for seccomp-assisted syscall filtering

Eugene Syromiatnikov esyr at redhat.com
Wed Jul 31 16:58:12 UTC 2019


On Wed, Jul 31, 2019 at 05:36:59PM +0200, Paul Chaignon wrote:
> diff --git a/tests/status-none-f.c b/tests/status-none-f.c
> new file mode 100644
> index 00000000..c4305d66
> --- /dev/null
> +++ b/tests/status-none-f.c
> @@ -0,0 +1,20 @@
> +/*
> + * Check basic seccomp filtering with large number of traced syscalls.
> + *
> + * Copyright (c) 2019 The strace developers.
> + * All rights reserved.
> + *
> + * SPDX-License-Identifier: GPL-2.0-or-later
> + */
> +
> +#include "tests.h"
> +#include <stdio.h>
> +#include <unistd.h>
> +
> +int
> +main(void)
> +{
> +	printf("%-5d +++ exited with 0 +++\n", getpid());
> +	return 0;
> +}
> +

git am fails with the following diagnostics:

	/home/esyr/dev/strace/.git/rebase-apply/patch:120: new blank line at EOF.
	+
	fatal: 1 line adds whitespace errors.
	Patch failed at 0003 tests: test cases for seccomp-assisted syscall filtering


More information about the Strace-devel mailing list