Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp38703imm; Thu, 20 Sep 2018 17:46:29 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbvhZasVdzPPQZE66Nv5MPwHl815TZzR5WS5pOVFTzC2NCo2XgTC9OhOTZqte+znzSjQWRi X-Received: by 2002:a17:902:bb98:: with SMTP id m24-v6mr626291pls.186.1537490789443; Thu, 20 Sep 2018 17:46:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537490789; cv=none; d=google.com; s=arc-20160816; b=OE4Pje+ikcoO18sm9vpvlY/3FvIo5zFVAzsbSIDS9pT7AvaKnFxAch/oxW6Up0bkMm ycwcFvdJ+CiO8HJOqshgeKnV1Bbc4FKJB7TP65T3muTCPCIhzSgSXR0Wn7bzZGRgpHl3 SQKt4yXLfSNFo/VF8GOGcTWsB2Oe0jRvp9zOUdpi71iWwC8WhRck5XqLUQ156g3TOd9Z jm4mJW4OIpYxrczw4L/TDFdtwpvoPNrC5ZHAecMorLF6dHjXGvfBSt+Nzu7ENtdchnYS WZXFaO1JxYBA+MhNs3OhuesMsU95T9ATQfION7i+C7YIZDyKptxpsIbb/imxGkHtrfzc htzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature; bh=oFFn2fddJUC7h/bsRsumKvXPCeb/oLa4VBcDP7kxCfo=; b=BWasZVqcM/cnre3AS/J4wVznwQmfi2pgcV0Fbaox3MtCBnAMYNz0raR6sLcgNn/8c4 CsjWW++fM/CZomFpohBOkRVMNs7K3VsW6PmIWJdbV/dOiOVY++JxZbfWqnqa2V1Us6HV xCZ+uWCmuPzDOicWbKxiuKctDDwXIuuPFpA3cFkNxQItssCcWmQ9iE6AOOA0XqPJQNlk ovX/LqwZluXaXvwAR7naQ2hDhGijiZaQVsqzYHvArStuSa4qqVf1ERidYEqmq0YxBLXS fALrSFHclK8bt2LFXazS66x5FyKPDSAV4WDQ0B/v3R6e2qkyBFMN3wTJubt1JICZvs1R I5ig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=bmP+GiPV; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h16-v6si24978287pgj.611.2018.09.20.17.46.13; Thu, 20 Sep 2018 17:46:29 -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; dkim=pass header.i=@chromium.org header.s=google header.b=bmP+GiPV; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388849AbeIUGcF (ORCPT + 99 others); Fri, 21 Sep 2018 02:32:05 -0400 Received: from mail-yw1-f66.google.com ([209.85.161.66]:43011 "EHLO mail-yw1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725780AbeIUGcF (ORCPT ); Fri, 21 Sep 2018 02:32:05 -0400 Received: by mail-yw1-f66.google.com with SMTP id l189-v6so4539538ywb.10 for ; Thu, 20 Sep 2018 17:45:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=oFFn2fddJUC7h/bsRsumKvXPCeb/oLa4VBcDP7kxCfo=; b=bmP+GiPVcF7sEsVo5kAw4mHKtI8HEKKeGwg3eM1j0BISBWBVxmlZgDx7E3Q1GG44In uAFN3k42YgvNTJNZrD8O1JqLOZL9OGjXZ0Wnu7tRqhNJbXQ3zgGqQ7tZ1SP+7Dr6TR1J TsFu1XFFIf/z+nKdQyNZfkA8EbLKr0Hc0hLTc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=oFFn2fddJUC7h/bsRsumKvXPCeb/oLa4VBcDP7kxCfo=; b=KQJIR2is0wE6tTy4Len2siyaV7cxCTZNEk4yodTsZP1f8wTL/OofOQocsSLFgBqsz0 L996c3XKVvLULi2gtGTApKJ4J8PLJM1exkE1gbkjxwZe9xIxpM/LnQ4CAGnXy/m3jF4C LAdB0h8H8rS1uIiMSrJENPzfEAgQsaq5M9x1gbyYJOiyCy/rFB6EWTKVaDQBvvbiryyX OGsWulbSFa6IfmABjYO3CMJy9lrmgI3J7OuOmjHFpWdyZU+WIxwrvF9fSlNzAsuu99Z4 0Kt63ij0eN5Z0EwNNcWZk1wsueNM0YMDayR51HIkA8oh9rt0d163GYE5oTBF/cF5heb7 md4A== X-Gm-Message-State: APzg51DOxLe9EUouQHllaXYPOLuC2OJEqeFHxI/QQVzXFkT+wGsUXwxS l9avZ0szGUEeQd53OvswP7irsVAB6S4= X-Received: by 2002:a81:a00a:: with SMTP id x10-v6mr3429437ywg.272.1537490752454; Thu, 20 Sep 2018 17:45:52 -0700 (PDT) Received: from mail-yw1-f50.google.com (mail-yw1-f50.google.com. [209.85.161.50]) by smtp.gmail.com with ESMTPSA id 203-v6sm3839403ywv.34.2018.09.20.17.45.48 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 20 Sep 2018 17:45:49 -0700 (PDT) Received: by mail-yw1-f50.google.com with SMTP id x83-v6so4551619ywd.4 for ; Thu, 20 Sep 2018 17:45:48 -0700 (PDT) X-Received: by 2002:a81:1194:: with SMTP id 142-v6mr19482513ywr.168.1537490747984; Thu, 20 Sep 2018 17:45:47 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a25:5f04:0:0:0:0:0 with HTTP; Thu, 20 Sep 2018 17:45:47 -0700 (PDT) In-Reply-To: References: <20180920162338.21060-1-keescook@chromium.org> <20180920162338.21060-27-keescook@chromium.org> From: Kees Cook Date: Thu, 20 Sep 2018 17:45:47 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH security-next v2 26/26] LSM: Add all exclusive LSMs to ordered initialization To: Casey Schaufler Cc: James Morris , John Johansen , Tetsuo Handa , Paul Moore , Stephen Smalley , "Schaufler, Casey" , LSM , Jonathan Corbet , "open list:DOCUMENTATION" , linux-arch , LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 20, 2018 at 5:25 PM, Casey Schaufler wrote: > On 9/20/2018 9:23 AM, Kees Cook wrote: >> config LSM_ORDER >> string "Default initialization order of builtin LSMs" >> - default "yama,loadpin,integrity" >> + default "yama,loadpin,integrity,selinux,smack,tomoyo,apparmor" > > If I want to compile all the major modules into my kernel and use > AppArmor by default would I use > > default "yama,loadpin,integrity,apparmor,selinux,smack,tomoyo" > > or > > default "yama,loadpin,integrity,apparmor" I was expecting the former, but the latter will have the same result. > When we have "blob-sharing" how could I compile in tomoyo, > but exclude it without a boot line option? Ooh, yes, this series has no way to do that. Perhaps CONFIG_LSM_DISABLE in the same form as CONFIG_LSM_ORDER? I would totally remove LoadPin's CONFIG for this in favor it. > When we have full stacking, how could I compile in selinux > but exclude it? Yup, same problem. Same suggested solution? Should lsm.enable/disable= also become a comma-separated list, or should I leave it as a multi-instance thing like I have it? -Kees -- Kees Cook Pixel Security