[Devel] [PATCH rh7] seccomp, ptrace: Save original BPF program when setting the filer

Cyrill Gorcunov gorcunov at virtuozzo.com
Thu Dec 8 14:11:11 PST 2016


On Thu, Dec 08, 2016 at 02:04:19PM -0800, Andrey Vagin wrote:
> > 
> > Index: linux-pcs7.git/kernel/seccomp.c
> > ===================================================================
> > --- linux-pcs7.git.orig/kernel/seccomp.c
> > +++ linux-pcs7.git/kernel/seccomp.c
> > @@ -54,6 +54,9 @@
> >  struct seccomp_filter {
> >  	atomic_t usage;
> >  	struct seccomp_filter *prev;
> > +#if CONFIG_VE
> 
> Why do you not use CONFIG_CHECKPOINT_RESTORE here?

Because it's custom patch, unrelated to vanilla, we have
CONFIG_CHECKPOINT_RESTORE always set in our config. I could
use both CONFIG_ here but I think it is overhead.


More information about the Devel mailing list