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

2016-12-08 Thread Cyrill Gorcunov
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 @@ > >

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

2016-12-08 Thread Andrey Vagin
On Wed, Dec 07, 2016 at 08:29:22PM +0300, Cyrill Gorcunov wrote: > The vanilla kernel is quite reworked in filter management, in particular > the filters passed into sockets or seccomp are saved in the userspace form > as struct bpf_prog::orig_prog. We can't port all the patches right now, > lets

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

2016-12-08 Thread Konstantin Khorenko
Andrey, i'm committing this, but please, review anyway. -- Best regards, Konstantin Khorenko, Virtuozzo Linux Kernel Team On 12/07/2016 08:29 PM, Cyrill Gorcunov wrote: The vanilla kernel is quite reworked in filter management, in particular the filters passed into sockets or seccomp are

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

2016-12-07 Thread Cyrill Gorcunov
The vanilla kernel is quite reworked in filter management, in particular the filters passed into sockets or seccomp are saved in the userspace form as struct bpf_prog::orig_prog. We can't port all the patches right now, lets rather do a trick for seccomp sake and simply carry a copy inside struct