Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp140021imm; Thu, 13 Sep 2018 17:26:03 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYHaMUOezAYpU5SlnRt46Y+eqynOzf/oetmbsdforj9RoqAskLETWCspqlsnAK37VJqlR/3 X-Received: by 2002:a17:902:9045:: with SMTP id w5-v6mr9532024plz.10.1536884763206; Thu, 13 Sep 2018 17:26:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536884763; cv=none; d=google.com; s=arc-20160816; b=X0P1tJL3SJ2AtnfFS1Wd/Ts6ysGuihU0puQ7a+P8H0/I5ZnXz45SP+cydzT4Dx7e3T bQfav+E1ffUWv2LpDINUDQWs1NkL/3IUn4vNqZLapNsqcRF5NJSgZ7kGxXU4lR8K6Eyu pIUbsxH4SbUNpEegVeuVZPvOfXn1F/QJhEH474+ki6jYSmgPvMQfQhUmAIh+XIoAtioP gv/PfFeMlKl/L2LO7hJHd2NtTCsoMeJbsFxA+Rav77GoPvQzaNYnorsU3xIsU554iaOR txOssz07OpghJWYYed99IhTopQuHo//V94FTgafe6QiaN9RT4fCEqIjxmxMyU4InyIZs WzJQ== 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=6wMlK1y3LiN3aZ3bTuEJV8QEavcDQjHdwWOtDq+XGy8=; b=H2/jL7nAh017TM+LkXh5BbNUuxwdk88V8O9je/S7A3Z4IgyVXmBvfpUMR1HQft02Yv BSPvmYUsy6e/rdm4382rFST7bzQ9kJn0rKxlEUYmrWz4POu7rV169ercA2nsv8CCLzIB B0yUt4MClGjV2Fhe71m1tqWPGKyoQTNFa4HiMoUqjwj7bWC2eG61iBWnBVrWUJnVV25o vJqhwlOYW+lG+jpm2H/mCAlqBx0cw3g4uET8etXtvCkrgsl1XhkZjHWxLvzVkI6tESGj jZGZww477TJFlFvNqGR9OsnxoRnJKc8giMsTuude+DebKhUz6K8OKhwlhQXJK+gWGbKF tIiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=JknTXEwG; 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 f28-v6si5982786pgf.164.2018.09.13.17.25.34; Thu, 13 Sep 2018 17:26:03 -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=JknTXEwG; 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 S1728150AbeINFa7 (ORCPT + 99 others); Fri, 14 Sep 2018 01:30:59 -0400 Received: from mail-yb1-f195.google.com ([209.85.219.195]:36051 "EHLO mail-yb1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726868AbeINFa6 (ORCPT ); Fri, 14 Sep 2018 01:30:58 -0400 Received: by mail-yb1-f195.google.com with SMTP id d34-v6so4085833yba.3 for ; Thu, 13 Sep 2018 17:19:09 -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=6wMlK1y3LiN3aZ3bTuEJV8QEavcDQjHdwWOtDq+XGy8=; b=JknTXEwGLXgm+pEEceglu7LvExbBDFF+hh4kWx/RywJPcCe5axe6DbyxnhMF53x3zl 4pOXwyOGHLBATO1QydW/Np/o1JFZb4w0CAU7F7gnlqFDWSjZ30pQMF/f76kZjgTgY/+N 4yLVWKPXkF97gTI7taiRYXRohQqr4VmRvNbvc= 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=6wMlK1y3LiN3aZ3bTuEJV8QEavcDQjHdwWOtDq+XGy8=; b=JsaC814GbJPsZ9VoHSDyd3djQzIxhMRZeOtXAUxTSaBGSbE6VocLwjuwBHKU0eztxm 12argSMfN6vldODcLgs30SsNPl+mpCy8PP9g3NAYiMIspGMP1aRhjCJoloii5BHN2iX8 do/io1TPFR1Pr6v3ikuT4sNfdZ2CkazFt3Q8MlBgKZYBoz/7J0x85k0gwdy4eb3csfiz hY0hYgWN7cWJ1h+8QE24BHFIM/nifrTtQMAWQ7NCC3FFVZYnMqQwZL/rwIW1qLo6FBJt Q0k7/GVg4svo02QFflFAgQthTpPayCKA51g9d5sbKfTUlHjDqwYCjdHeq2g6ztC/Qc9n UqmQ== X-Gm-Message-State: APzg51ClA7/wciCao2Yr2oNIxu44OInmgMRjugQKgpaSGgQBo5QIprqW xrkfDAmAnKecGE7bZ/TkO7w+cw1+bog= X-Received: by 2002:a25:acdb:: with SMTP id x27-v6mr4660927ybd.297.1536884348978; Thu, 13 Sep 2018 17:19:08 -0700 (PDT) Received: from mail-yw1-f52.google.com (mail-yw1-f52.google.com. [209.85.161.52]) by smtp.gmail.com with ESMTPSA id m39-v6sm2101263ywh.65.2018.09.13.17.19.05 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 13 Sep 2018 17:19:06 -0700 (PDT) Received: by mail-yw1-f52.google.com with SMTP id x67-v6so1953170ywg.0 for ; Thu, 13 Sep 2018 17:19:05 -0700 (PDT) X-Received: by 2002:a0d:db10:: with SMTP id d16-v6mr4787313ywe.124.1536884345238; Thu, 13 Sep 2018 17:19:05 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a25:5f04:0:0:0:0:0 with HTTP; Thu, 13 Sep 2018 17:19:04 -0700 (PDT) In-Reply-To: <5b983bba-049c-795a-3354-a2e8ab33cecf@schaufler-ca.com> References: <99cb1ae7-8881-eb9a-a8cb-a787abe454e1@schaufler-ca.com> <5b983bba-049c-795a-3354-a2e8ab33cecf@schaufler-ca.com> From: Kees Cook Date: Thu, 13 Sep 2018 17:19:04 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 10/10] LSM: Blob sharing support for S.A.R.A and LandLock To: Casey Schaufler Cc: Paul Moore , linux-security-module , James Morris , LKML , SE Linux , John Johansen , Tetsuo Handa , Stephen Smalley , "linux-fsdevel@vger.kernel.org" , Alexey Dobriyan , "Schaufler, Casey" 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 13, 2018 at 5:08 PM, Casey Schaufler wrote: > On 9/13/2018 4:57 PM, Kees Cook wrote: >> On Thu, Sep 13, 2018 at 4:51 PM, Casey Schaufler wrote: >>> On 9/13/2018 4:06 PM, Kees Cook wrote: >>>> - what order should any stacking happen? Makefile? security=? >>> Makefile by default. >> Okay, if ordering is by Makefile and everyone dislikes my >> $lsm.enabled=0/1 thing, then these mean the same thing: >> >> security=selinux,tomoyo >> security=tomoyo,selinux >> >> i.e. order of security= is _ignored_ in favor of the Makefile ordering. > > No, I think that the two lines above should have a different > execution order. If we really need to specify multiple modules > at boot time that is what makes the most sense. > > It's a matter of mechanics and probably another pass during the > init process, but it's doable. If we determine it's necessary for > this stage it is just work. We already have the minor LSMs that cannot change order. They aren't part of security= parsing either. To enable/disable LoadPin, you do "loadpin.enabled=1/0" separate from "security=". Should "blob-sharing" LSMs be like major LSMs or minor LSMs? If someone is booting with "security=selinux,tomoyo" and then SARA lands upstream, does that person have to explicitly add "sara" to their boot args, since they're doing a non-default list of LSMs? (I actually prefer the answer being "yes" here, FWIW, I just want to nail down the expectations.) -Kees -- Kees Cook Pixel Security