Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1634253pxb; Mon, 22 Feb 2021 07:07:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJyWPQR5ifL2eNPyvl5x7Ye3k6akCZiMRuNWvyGco0rB93Ox5avAmRvgN6ICxGRgXx/AnyR2 X-Received: by 2002:a17:906:98ca:: with SMTP id zd10mr9418657ejb.536.1614006476743; Mon, 22 Feb 2021 07:07:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614006476; cv=none; d=google.com; s=arc-20160816; b=us10yZrXLNhv/ov7Oh/1LjenBtC7z9ep9c8/BIfq+xyJ9HPBA3dikupkRG53mvMuap TLUvNUXpwpr8CnTtl7BiPQJeCYCOQTsuEHnGIOpUwxMWTUNquzrpKEY0PRfekSUtZQeY 2SbUad9NWnhgvAV5+mgKjseCb8JwtLX+ei72AcpL4jAIBJ/kyD1Oo/gRlmFusSYTJg/4 OeI9NbdxQgPySZYyJ8CTQqkvEAgn1e37TiTfhm09trZBMnSTbQPfYZdMowAWquB7m3lN 8Y9BXj13CUggpk1QYBpMay0AYqbIgggy3iIGMge0k/LpMeujCjsG6LZsPCPy2DEp+Rvq h9Vg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=nJDQWc2qcnOApuF3qxQDif804nQJgamz7OCAkzG+z1M=; b=dUqW4rgRUwWPr9mutxEg876tPc/BS5NpS8OGvaMNaXGIA0Rev94bzayRW1qzLVJShw 47ONswqOt7HvxOkZe3rs+Yf47Xxg5dSfCohxA4OleSL7d1vHSFsabEpmNhgjXkmgmL20 mZre4OWCWAuJjnlo+X2/qQRjxLhoooeUHfa7TTeRntM8EoQM6xtx39bJyXAX3q0HOmme wHcVMRTHnKtsfcA6aFpWVmJhA3d+hTmGpnJvLT8Mh2dq5pOGTMQqzMvtOWF42yhDDak/ azKyayyA7wOReqwj//wHg7SBuER+dsyCX6lGGsEfFAHj/VMWYT1rfAe4wqeccTkhkQWS QRxQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j16si11999686ejm.573.2021.02.22.07.07.32; Mon, 22 Feb 2021 07:07:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230443AbhBVPFr (ORCPT + 99 others); Mon, 22 Feb 2021 10:05:47 -0500 Received: from smtp-190a.mail.infomaniak.ch ([185.125.25.10]:46499 "EHLO smtp-190a.mail.infomaniak.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229991AbhBVPFp (ORCPT ); Mon, 22 Feb 2021 10:05:45 -0500 Received: from smtp-2-0000.mail.infomaniak.ch (unknown [10.5.36.107]) by smtp-3-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4DklpY6mVJzMq5lT; Mon, 22 Feb 2021 16:04:53 +0100 (CET) Received: from localhost (unknown [23.97.221.149]) by smtp-2-0000.mail.infomaniak.ch (Postfix) with ESMTPA id 4DklpY3Lhvzlpq04; Mon, 22 Feb 2021 16:04:52 +0100 (CET) From: =?UTF-8?q?Micka=C3=ABl=20Sala=C3=BCn?= To: James Morris , "Serge E . Hallyn" Cc: =?UTF-8?q?Micka=C3=ABl=20Sala=C3=BCn?= , Casey Schaufler , Kees Cook , linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org Subject: [PATCH v3 0/1] Automatic LSM stack ordering Date: Mon, 22 Feb 2021 16:06:07 +0100 Message-Id: <20210222150608.808146-1-mic@digikod.net> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, This patch series gives the opportunity to users to not manually configure the list of LSM enabled at boot but instead always rely on the up-to-date list of existing LSMs. Indeed, CONFIG_LSM may never be updated with a make oldconfig whereas users may select new LSMs over time. With this patch, when running make oldconfig, a new option CONFIG_LSM_AUTO is pre-selected to delegate LSM ordering to the kernel developers, according to the user configuration. This third series replace the previous virtual dependencies with a new option to automatically enable all selected LSMs. This is cleaner, simpler, and makes the transition more convenient. This patch series can be applied on v5.11-7580-gea914b7ffbfd (or v5.11). Previous version: https://lore.kernel.org/r/20210215181511.2840674-1-mic@digikod.net Mickaël Salaün (1): security: Add CONFIG_LSM_AUTO to handle default LSM stack ordering security/Kconfig | 19 +++++++++++++++++++ security/security.c | 26 +++++++++++++++++++++++++- 2 files changed, 44 insertions(+), 1 deletion(-) base-commit: 31caf8b2a847214be856f843e251fc2ed2cd1075 -- 2.30.0