[PATCH RFC 7/9] filter_seccomp: reverse linear generation strategy

Dmitry V. Levin ldv at altlinux.org
Fri Aug 23 16:56:03 UTC 2019


On Fri, Aug 23, 2019 at 11:44:11AM +0200, Paul Chaignon wrote:
[...]
> @@ -202,7 +205,8 @@ bpf_syscalls_cmp(struct sock_filter *filter,
>  }
>  
>  static unsigned short
> -linear_filter_generator(struct sock_filter *filter, bool *overflow)
> +__linear_filter_generator(struct sock_filter *filter, bool *overflow,
> +			  bool match_traced)
>  {
>  	/*
>  	 * Generated program looks like:

Please do not create identifiers starting with _ symbol,
that namespace is reserved.


-- 
ldv


More information about the Strace-devel mailing list