Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4555732imm; Mon, 17 Sep 2018 16:28:50 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYY7Xbx3APQ938gv+fR/tEeLbufH4wgGLZxwlt6d/f/JoHFQfjEjyF9FwJENYeudAbRTjbX X-Received: by 2002:a63:fd52:: with SMTP id m18-v6mr25381753pgj.304.1537226930530; Mon, 17 Sep 2018 16:28:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537226930; cv=none; d=google.com; s=arc-20160816; b=aLx6ByZdQJnvTg/t7B/yjhEOeYXBwbR0FCK7CStRDxJZnzj57FGzS+k70qQyopjtXa 8QHwOiYEGFHHjtrbJ8jqvPKTZkM0VlFa1qjrfW20g7dXrtZpOhXgch2dPfVTLMPSeQ2x qW8zWxju+tYcjS3f+jr7RGQ6zMACzWZC9Vlx8GBshEA0aor0a6XKAts/Cl+0O0l2C6nY HnXeWjZ8aV865HRjxHLZaJ7Ij+FRdv682LWS2Mv/1mlmjyiYdqHbpvAaUDQlTHUTMwAi 6dkvIsXENAb2XCwEjCbDGKzxapLLoPaO4iz1QQOjeaCXLJhUzoAgxjv1J9uSdBjwhIal LXSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:references:in-reply-to:mime-version :dkim-signature; bh=Wqw1mHOWISrN/Oge4Z1zXObzhGP/4Fq26F67aygbpV4=; b=CcOoqEO+IxrCRDpMnF0t0d2lK6Eg//4w3oMqRMuB46EJ/dMkzqY1oxRI+Iu/r/VtXC fcs4MDUWMtHOk4M7tLrHhiaLV/qeXG2v2OzoVPS18FRbBCcBseESzjBUZOYLNN7PpjTa bgBSGXs3M6nvVEFf/BJJxCxIjhtkHcbyYKBHgZzaYkuRWHFtqvz6m1hckaKlZT87wqsb I9SWcQh8b9D1UXyF9FhM+ksZjKJf1lwVyeyllfggF/KPeqBOvu5J6W+ttUCZEQrglyV2 vXa+6+DQktF+/wFHnjGCQHyehdpKfdw+3ge/dgtIEdfHmnFnp2Pof9mgma841WQDHw2Z FIUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=HQmOVkKU; 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 q65-v6si17844276pfb.9.2018.09.17.16.28.35; Mon, 17 Sep 2018 16:28:50 -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=HQmOVkKU; 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 S1727229AbeIRE6F (ORCPT + 99 others); Tue, 18 Sep 2018 00:58:05 -0400 Received: from mail-yw1-f67.google.com ([209.85.161.67]:34553 "EHLO mail-yw1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725826AbeIRE6E (ORCPT ); Tue, 18 Sep 2018 00:58:04 -0400 Received: by mail-yw1-f67.google.com with SMTP id y134-v6so34606ywg.1 for ; Mon, 17 Sep 2018 16:28:28 -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:content-transfer-encoding; bh=Wqw1mHOWISrN/Oge4Z1zXObzhGP/4Fq26F67aygbpV4=; b=HQmOVkKUyeFTkw+0Pe3Uyl5Gebfc4kXPUJ5zt1tH9fyFIN+QcYtLTs1P7/Fu39J3mL 27dpYZrJq3XZ+S5fRKxGMBa7CSBMcUb3NyixSEAY3F3yWki6vRYcSysjbH3fNFIls4yP PDSlCzGTrA69YA6qJvsuiEk6laIljee4DdL/Q= 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:content-transfer-encoding; bh=Wqw1mHOWISrN/Oge4Z1zXObzhGP/4Fq26F67aygbpV4=; b=jAss86SFG8hvO98CAF89T4YvXAUA7ebSQQMP0YZzip91wdJ12gOtg/CoO39VkomqMh yCHKdU4RuFzxdI6xZPj+fQUEqmI5dFwIORFlOVjAFKFSuY2hBqlWptGMGlmx9E1TSIoI WvwcnfygQzUktJoQJQSVZCx+E+QN7PP44jmm/6AlhZfcO+zqO06mjHNOCbhA3u38zBPA 3G3sPI2F78u6y61Sy3uuHVvxdfTPGcNFGx1bEppjwp+NizqZGk05UFXjnHfboHV8OtHs KiOEqb732qIOfEw38Cyubxdvfl4GdBO5+C5Xhxyyh+Tzrk/L8j1LJy9axpt2eoAQfzIu cGZw== X-Gm-Message-State: APzg51AR159hmxAfKXiaQubGCoFtyfMzB0YW6MTKN7AJ42JlkDibrHWG 4DBo/CAVcVheJLChmKLTpzB6h9Zm048= X-Received: by 2002:a0d:cd43:: with SMTP id p64-v6mr11178139ywd.12.1537226907974; Mon, 17 Sep 2018 16:28:27 -0700 (PDT) Received: from mail-yw1-f46.google.com (mail-yw1-f46.google.com. [209.85.161.46]) by smtp.gmail.com with ESMTPSA id o74-v6sm933901ywo.54.2018.09.17.16.28.25 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 17 Sep 2018 16:28:27 -0700 (PDT) Received: by mail-yw1-f46.google.com with SMTP id z143-v6so23922ywa.7 for ; Mon, 17 Sep 2018 16:28:25 -0700 (PDT) X-Received: by 2002:a0d:db10:: with SMTP id d16-v6mr11703284ywe.124.1537226905257; Mon, 17 Sep 2018 16:28:25 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a25:5f04:0:0:0:0:0 with HTTP; Mon, 17 Sep 2018 16:28:24 -0700 (PDT) In-Reply-To: <060150b2-4bb4-bdcb-760a-5aa5e1ade381@canonical.com> References: <20180916003059.1046-1-keescook@chromium.org> <20180916003059.1046-17-keescook@chromium.org> <84e1a5a8-8997-829f-cf09-1d29895a3f99@schaufler-ca.com> <35b0af5b-e37e-e192-73b5-0d0b37d9e37f@schaufler-ca.com> <8f0bd39b-29a6-325d-4558-d9f484249c22@schaufler-ca.com> <53377892-695f-6336-8574-54c7aa0a4201@schaufler-ca.com> <7ecfffc3-d2a4-3ff7-4bf5-db3029d73c59@canonical.com> <060150b2-4bb4-bdcb-760a-5aa5e1ade381@canonical.com> From: Kees Cook Date: Mon, 17 Sep 2018 16:28:24 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 16/18] LSM: Allow arbitrary LSM ordering To: John Johansen Cc: =?UTF-8?B?TWlja2HDq2wgU2FsYcO8bg==?= , Casey Schaufler , James Morris , Tetsuo Handa , Paul Moore , Stephen Smalley , "Schaufler, Casey" , LSM , LKLM Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 17, 2018 at 4:26 PM, John Johansen wrote: > On 09/17/2018 04:20 PM, Kees Cook wrote: >> On Mon, Sep 17, 2018 at 4:10 PM, Micka=C3=ABl Sala=C3=BCn wrote: >>> Landlock, because it target unprivileged users, should only be called >>> after all other major (access-control) LSMs. The admin or distro must >>> not be able to change that order in any way. This constraint doesn't >>> apply to current LSMs, though. >> >> Good point! It will be easy to add LSM_ORDER_LAST, though, given the >> machinery introduced in this series. >> > > And when we have two LSMs that want to use that? We'll cross that bridge when we come to it, but perhaps "last exclusive"? (lsm.enable/disable to choose) -Kees --=20 Kees Cook Pixel Security