From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6EC73C433DF for ; Mon, 6 Jul 2020 18:51:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 524A8206CD for ; Mon, 6 Jul 2020 18:51:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729691AbgGFSvj (ORCPT ); Mon, 6 Jul 2020 14:51:39 -0400 Received: from www62.your-server.de ([213.133.104.62]:48284 "EHLO www62.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729569AbgGFSvj (ORCPT ); Mon, 6 Jul 2020 14:51:39 -0400 Received: from sslproxy03.your-server.de ([88.198.220.132]) by www62.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89_1) (envelope-from ) id 1jsWDI-0004Mm-BM; Mon, 06 Jul 2020 20:51:36 +0200 Received: from [178.196.57.75] (helo=pc-9.home) by sslproxy03.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jsWDI-000Rya-20; Mon, 06 Jul 2020 20:51:36 +0200 Subject: Re: [PATCH] bpf: lsm: Disable or enable BPF LSM at boot time To: Lorenzo Fontana , linux-kernel@vger.kernel.org, bpf@vger.kernel.org, linux-security-module@vger.kernel.org, Jonathan Corbet , James Morris , "Serge E. Hallyn" , Alexei Starovoitov , Martin KaFai Lau , Song Liu , Yonghong Song , Andrii Nakryiko , John Fastabend , KP Singh References: <20200706165710.GA208695@gallifrey> From: Daniel Borkmann Message-ID: <9268bd47-93db-1591-e224-8d3da333636e@iogearbox.net> Date: Mon, 6 Jul 2020 20:51:35 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: <20200706165710.GA208695@gallifrey> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Authenticated-Sender: daniel@iogearbox.net X-Virus-Scanned: Clear (ClamAV 0.102.3/25865/Mon Jul 6 16:07:44 2020) Sender: owner-linux-security-module@vger.kernel.org Precedence: bulk List-ID: On 7/6/20 6:57 PM, Lorenzo Fontana wrote: > This option adds a kernel parameter 'bpf_lsm', > which allows the BPF LSM to be disabled at boot. > The purpose of this option is to allow a single kernel > image to be distributed with the BPF LSM built in, > but not necessarily enabled. > > Signed-off-by: Lorenzo Fontana Well, this explains what the patch is doing but not *why* you need it exactly. Please explain your concrete use-case for this patch. Thanks, Daniel