Received: by 2002:a17:90a:1609:0:0:0:0 with SMTP id n9csp2543059pja; Thu, 26 Mar 2020 17:31:18 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsimtF/jfTJleLPACLYJYEnVPNSHA5tiRh55hnT2JJtKU0/9vPxxY011IYZHXvoGC0ElcNS X-Received: by 2002:a05:6830:1513:: with SMTP id k19mr7907128otp.276.1585269077830; Thu, 26 Mar 2020 17:31:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585269077; cv=none; d=google.com; s=arc-20160816; b=b+oqME0fl7iw2bVdQC18vAIQY4cOfaDw5y3aF2rsU9coPhUjNm0MCavG4wu6vrTq/v h0Qpb7uaSllR1EXBpvpU9cCtDavTQWpBg1GF4n5Dn7nj7KWKL+fXFWirG3Ca219vwl8I kkxtoxwmwSvwbG4Xzk6gHvo2zE6ZW/2GebRaZS16v5zXHNwHtwC2agO3ZZl93QGrpVEa hehczi+MTxR+fxRyzafUY+37akAbXwZEVV+2XaS6mvPVCP695SoB21YlcO2cxrFyw3x7 D+SY6u7PQBX6BCwTNtyGPTEbBrAajAZgAGslhLB4PKWQfDqIPbBOBg8BM8MJX4JyBqoj 64YQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=+/UYSgaGPsbdb4CiFuXCwi3BDjVqWBHB7sTw9Xn2ujM=; b=Dq0sGUl8UT44fok5XZ2XJPeJFo3azOUYZsrHfJMeztBk+PNZqY1L1FbvFh0ukBrM+z aSvDpRu9ba5TfCLneWXmrVCzmt5dELA/IQcTK0xXjj/i9jcCdX1Vu8/bicQQzaCBpOkG oqoGqI4gAr8AmaWXKOXdvlz1IywYFw/YOmjl3D4i3L82a/kjUm/oiAVVMxoXKy+9E9V1 2kOho4U1Qkf77SFpyBpSE4ZwX4IPq5lbFdCjO2qdnuL8G6KcX37rPuY/VkqsgxfALIrJ XYQQnQ/SQOUU8WsbkKLafL32fYH+bbLdOzg6hwipHnDjHM2hF/Ql+w4Z6PmuwAMKnclR simQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y3si1572480oof.81.2020.03.26.17.31.04; Thu, 26 Mar 2020 17:31:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727690AbgC0Aaa (ORCPT + 99 others); Thu, 26 Mar 2020 20:30:30 -0400 Received: from namei.org ([65.99.196.166]:43868 "EHLO namei.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726359AbgC0Aaa (ORCPT ); Thu, 26 Mar 2020 20:30:30 -0400 Received: from localhost (localhost [127.0.0.1]) by namei.org (8.14.4/8.14.4) with ESMTP id 02R0Tw68018115; Fri, 27 Mar 2020 00:29:58 GMT Date: Fri, 27 Mar 2020 11:29:58 +1100 (AEDT) From: James Morris To: KP Singh cc: linux-kernel@vger.kernel.org, bpf@vger.kernel.org, linux-security-module@vger.kernel.org, Kees Cook , Brendan Jackman , Florent Revest , Alexei Starovoitov , Daniel Borkmann , Paul Turner , Jann Horn , Florent Revest , Brendan Jackman , Greg Kroah-Hartman Subject: Re: [PATCH bpf-next v7 5/8] bpf: lsm: Initialize the BPF LSM hooks In-Reply-To: <20200326142823.26277-6-kpsingh@chromium.org> Message-ID: References: <20200326142823.26277-1-kpsingh@chromium.org> <20200326142823.26277-6-kpsingh@chromium.org> User-Agent: Alpine 2.21 (LRH 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 26 Mar 2020, KP Singh wrote: > From: KP Singh > > * The hooks are initialized using the definitions in > include/linux/lsm_hook_defs.h. > * The LSM can be enabled / disabled with CONFIG_BPF_LSM. > > Signed-off-by: KP Singh > Acked-by: Kees Cook > Reviewed-by: Brendan Jackman > Reviewed-by: Florent Revest > --- > security/Kconfig | 10 +++++----- > security/Makefile | 2 ++ > security/bpf/Makefile | 5 +++++ > security/bpf/hooks.c | 26 ++++++++++++++++++++++++++ > 4 files changed, 38 insertions(+), 5 deletions(-) > create mode 100644 security/bpf/Makefile > create mode 100644 security/bpf/hooks.c Acked-by: James Morris -- James Morris