Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759059Ab3DAVxM (ORCPT ); Mon, 1 Apr 2013 17:53:12 -0400 Received: from mail-oa0-f45.google.com ([209.85.219.45]:37405 "EHLO mail-oa0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753929Ab3DAVxK (ORCPT ); Mon, 1 Apr 2013 17:53:10 -0400 MIME-Version: 1.0 In-Reply-To: <1363618233-6375-2-git-send-email-nschichan@freebox.fr> References: <1363618233-6375-1-git-send-email-nschichan@freebox.fr> <1363618233-6375-2-git-send-email-nschichan@freebox.fr> Date: Mon, 1 Apr 2013 14:53:09 -0700 X-Google-Sender-Auth: RdjL7wsmZj5eQRVhG64VfSJxOuQ Message-ID: Subject: Re: [PATCH V2 1/3] seccomp: add generic code for jitted seccomp filters. From: Kees Cook To: Nicolas Schichan Cc: Will Drewry , Mircea Gherzan , LKML , "linux-arm-kernel@lists.infradead.org" , Al Viro , Andrew Morton , Eric Paris , James Morris , Serge Hallyn Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1010 Lines: 31 On Mon, Mar 18, 2013 at 7:50 AM, Nicolas Schichan wrote: > Architecture must select HAVE_SECCOMP_FILTER_JIT and implement > seccomp_jit_compile() and seccomp_jit_free() if they intend to support > jitted seccomp filters. > > struct seccomp_filter has been moved to to make its > content available to the jit compilation code. > > In a way similar to the net BPF, the jit compilation code is expected > to updates struct seccomp_filter.bpf_func pointer to the generated > code. > > Signed-off-by: Nicolas Schichan Acked-by: Kees Cook I'd love to see this for x86 too. I suspect it'd be a small change after this series lands. Thanks, -Kees -- Kees Cook Chrome OS Security -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/