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

Paul Chaignon paul.chaignon at gmail.com
Mon Aug 26 15:28:50 UTC 2019


On Fri, Aug 23, 2019 at 07:56:03PM +0300, Dmitry V. Levin wrote:
> 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.

Sorry, you've said that already.  I'm having a hard time losing that
habit.  I've changed it to linear_filter_generator__; I haven't found a
better name.

Paul


More information about the Strace-devel mailing list