Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp355212imm; Mon, 1 Oct 2018 10:59:43 -0700 (PDT) X-Google-Smtp-Source: ACcGV60A2PcayClJl3t+jTUMU8veNMQPLBnVYNqhmDEAXU38kGKcHR58QtsGXohP9ZaR/x3Dkk7B X-Received: by 2002:a17:902:4d45:: with SMTP id o5-v6mr108303plh.42.1538416783379; Mon, 01 Oct 2018 10:59:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538416783; cv=none; d=google.com; s=arc-20160816; b=yfJ8wQFGldLLwXcUew/wH0nq3DtlKkCEhdq/ZZvEP5ft2W6dRF9Eo/8xEKdl651hd9 3HmErCRptaOIzExayYRF5ozwJ8Q0ekhoKnK2dmgl7I2d+/CiSm5Ez8uxxQbGrBMfSLhn AKkn7e21R+UUztow8V5dnDWZgdPEqDTVJce6z5aOswu+MjJh/J8q3VAhacnyn/DzHj9U D5EtoRGbkiKJi3oks2flnalWcaTKCAf1FGUBvKmPOG1BkIhyCOQJqqW4lD/6jng9mdv4 wHwRNTnCXSLNCYPHAEK5ESaauELJId46RZBC/zfhGjaErqt8Rn4nn0J3862AJHfdHvjp 1HCw== 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=LNob3Qq2tMQFEmfNYKMPLhGrodzcE8itrIq1VnQyUuM=; b=0TciCSAv9SYsEVPlDSAHDhpRY6VzUtncNmlgE8k9JmLrCstV+TTwzBoru33WGvz8jM qEf50cAocZhvbordm6y4O+cPikfVSO+BBhh64kG4PaYrTeWKLvSkHfjN1i8gSee5QcU9 wtUuXGEzxzntX6LLjpRMStMK5H4TvVleROFXFJvITkX68+UHQ5XBnWw/PnvYuMbKrHeT MAviOESroxt02Pw18TZlY2Cckj+oiYxJIUj1YFWYOj5H3W1ugJMpUOTXX3lEKsOLExI5 3HYYpA+gEyRfxP1OMvaFGp2QwUZHevltW/CCAnuC8FyUMSdNfrPN17YipZf1eCQKLP4t /xKw== 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 16-v6si12461520pgw.208.2018.10.01.10.59.28; Mon, 01 Oct 2018 10:59:43 -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 S1726461AbeJBAiF (ORCPT + 99 others); Mon, 1 Oct 2018 20:38:05 -0400 Received: from namei.org ([65.99.196.166]:34470 "EHLO namei.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725740AbeJBAiF (ORCPT ); Mon, 1 Oct 2018 20:38:05 -0400 Received: from localhost (localhost [127.0.0.1]) by namei.org (8.14.4/8.14.4) with ESMTP id w91Hwqb4010839; Mon, 1 Oct 2018 17:58:52 GMT Date: Tue, 2 Oct 2018 03:58:52 +1000 (AEST) From: James Morris To: Casey Schaufler cc: Tetsuo Handa , Kees Cook , LSM , SE Linux , LKLM , John Johansen , Paul Moore , Stephen Smalley , "linux-fsdevel@vger.kernel.org" , Alexey Dobriyan , =?ISO-8859-15?Q?Micka=EBl_Sala=FCn?= , Salvatore Mesoraca Subject: Re: [PATCH v4 00/19] LSM: Module stacking for SARA and Landlock In-Reply-To: Message-ID: References: <680e6e16-0890-8304-0e8e-6c58966813b5@schaufler-ca.com> <39457e79-3816-824b-6b4d-89d21b03f9ce@i-love.sakura.ne.jp> 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 Sun, 23 Sep 2018, Casey Schaufler wrote: > > How do you plan to handle LKM-based LSMs? > > My position all along has been that I don't plan to handle LKM > based LSMs, but that I won't do anything to prevent someone else > from adding them later. I believe that I've done that. Several > designs, including a separate list for dynamically loaded modules > have been proposed. I think some of those would work. Dynamically loadable LSMs are a bad idea, per several previous discussions. As a general design concept, kernel security mechanisms should be invoked during boot, so we can reason about the overall state of the system at a given point. In any case, we do not need to take dynamic LSMs into account at this stage. We don't build infrastructure for non-existent features.