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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8133EC433FE for ; Fri, 4 Nov 2022 16:30:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231892AbiKDQaX (ORCPT ); Fri, 4 Nov 2022 12:30:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55976 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231759AbiKDQaE (ORCPT ); Fri, 4 Nov 2022 12:30:04 -0400 Received: from smtp-bc0d.mail.infomaniak.ch (smtp-bc0d.mail.infomaniak.ch [IPv6:2001:1600:3:17::bc0d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F0D9E748CC for ; Fri, 4 Nov 2022 09:29:19 -0700 (PDT) Received: from smtp-2-0000.mail.infomaniak.ch (unknown [10.5.36.107]) by smtp-2-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4N3mKn3TBSzMqFWB; Fri, 4 Nov 2022 17:29:17 +0100 (CET) Received: from ns3096276.ip-94-23-54.eu (unknown [23.97.221.149]) by smtp-2-0000.mail.infomaniak.ch (Postfix) with ESMTPA id 4N3mKm2bgYzMppDs; Fri, 4 Nov 2022 17:29:16 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=digikod.net; s=20191114; t=1667579357; bh=D1u8OZmN1CbcNNIsyebyzioeBvYjVMKs6mHBS+hV2F0=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=Bro8cGD5XBQVPMabDjoCJ2DO5AVT5FK4AJWdIh3ho6SmxF7TZdlIHjYCPZqI+Di/Q LRTqlCjWUdwoTgqWlHeyw7yLjEXlUonuSkpKbR5GeJ560AzmxA6WAoJa7YywZSMVbw 7UGCiZulg6zPUM51PL04ASZmy8Nft0ZrDjZPksgc= Message-ID: Date: Fri, 4 Nov 2022 17:29:15 +0100 MIME-Version: 1.0 User-Agent: Subject: Re: [PATCH v3 1/1] security: Add CONFIG_LSM_AUTO to handle default LSM stack ordering Content-Language: en-US To: Paul Moore , Kees Cook Cc: Casey Schaufler , Nicolas Iooss , James Morris , "Serge E . Hallyn" , linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org, =?UTF-8?Q?Micka=c3=abl_Sala=c3=bcn?= References: <20210222150608.808146-1-mic@digikod.net> <20210222150608.808146-2-mic@digikod.net> <51725b44-bc40-0205-8583-285d3b35b5ca@schaufler-ca.com> <7b67163a-9de1-313f-5b5a-8c720cef9b73@schaufler-ca.com> <3b97e25b-303c-d732-3e5d-f1b1a446e090@schaufler-ca.com> <202210171111.21E3983165@keescook> <202210172153.C65BF23D5E@keescook> From: =?UTF-8?Q?Micka=c3=abl_Sala=c3=bcn?= In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: On 18/10/2022 21:31, Paul Moore wrote: > On Tue, Oct 18, 2022 at 1:55 AM Kees Cook wrote: >> On Mon, Oct 17, 2022 at 09:45:21PM -0400, Paul Moore wrote: [...] >>> We can have defaults, like we do know, but I'm in no hurry to remove >>> the ability to allow admins to change the ordering at boot time. >> >> My concern is with new LSMs vs the build system. A system builder will >> be prompted for a new CONFIG_SECURITY_SHINY, but won't be prompted >> about making changes to CONFIG_LSM to include it. > > I would argue that if an admin/builder doesn't understand what a shiny > new LSM does, they shouldn't be enabling that shiny new LSM. Adding > new, potentially restrictive, controls to your kernel build without a > basic understanding of those controls is a recipe for disaster and I > try to avoid recommending disaster as a planned course of action :) It depends on what this shiny new LSMs do *by default*. In the case of Landlock, it do nothing unless a process does specific system calls (same as for most new kernel features: sysfs entries, syscall flags…). I guess this is the same for most LSMs.