Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S943841AbcJSPB0 (ORCPT ); Wed, 19 Oct 2016 11:01:26 -0400 Received: from mail-qt0-f179.google.com ([209.85.216.179]:34116 "EHLO mail-qt0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S941825AbcJSPBU (ORCPT ); Wed, 19 Oct 2016 11:01:20 -0400 Date: Wed, 19 Oct 2016 17:01:17 +0200 From: Thomas Graf To: =?iso-8859-1?Q?Micka=EBl_Sala=FCn?= Cc: linux-kernel@vger.kernel.org, Alexei Starovoitov , Andy Lutomirski , Arnd Bergmann , Casey Schaufler , Daniel Borkmann , Daniel Mack , David Drysdale , "David S . Miller" , Elena Reshetova , "Eric W . Biederman" , James Morris , Kees Cook , Paul Moore , Sargun Dhillon , "Serge E . Hallyn" , Tejun Heo , Will Drewry , kernel-hardening@lists.openwall.com, linux-api@vger.kernel.org, linux-security-module@vger.kernel.org, netdev@vger.kernel.org, cgroups@vger.kernel.org Subject: Re: [RFC v3 05/22] bpf,landlock: Add eBPF program subtype and is_valid_subtype() verifier Message-ID: <20161019150117.GB22003@pox.localdomain> References: <20160914072415.26021-1-mic@digikod.net> <20160914072415.26021-6-mic@digikod.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20160914072415.26021-6-mic@digikod.net> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 387 Lines: 8 On 09/14/16 at 09:23am, Micka?l Sala?n wrote: > @@ -155,6 +163,7 @@ union bpf_attr { > __u32 log_size; /* size of user buffer */ > __aligned_u64 log_buf; /* user supplied buffer */ > __u32 kern_version; /* checked when prog_type=kprobe */ > + union bpf_prog_subtype prog_subtype; /* checked when prog_type=landlock */ The comment seems bogus, this is not landlock specific.