Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4550629imm; Mon, 17 Sep 2018 16:21:12 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZQVze3mbRyB1c626mpujkV3j0zlucuJRgKuYC4LSWKAJUbTtHS/6oeMuRl6DLGccflRA6E X-Received: by 2002:a62:e218:: with SMTP id a24-v6mr27482952pfi.75.1537226472511; Mon, 17 Sep 2018 16:21:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537226472; cv=none; d=google.com; s=arc-20160816; b=J3y58slnfheVPV5vwZvoBImA8H+yYaIFKg6lIHnm6sazEI2GAV6mgv5OBHVrr8Mk7l 7xOysL8lOpKpXNo1wKt698eaN9LhLGsbgUkZ77IWE3xR8reTzj1OR7q5cp9KwbUzhSHR 2MR13ZOehc0Nle+FIlVTrAZgxowf4oD9OZC0gVRTMKADYTXAoELvg3VIaoO/khjAaKHq OuNOfi4ROZucMLLK46/NtiKLZiO29C3aFRE0Knmxamcswto8orXOzgHNGAB9SVbAiPor S8Zvm2ub6yAMJ+ANxHLFxsYVSQ6LbfebpOvuOXJ/+3OmYeaVuX0y1M+OsLmJTCNFOSa8 o61g== 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=Z3jCLNQEqM+QuGe6MBSsyK872SEelhgmjjeOuoqczAI=; b=Da8212/Y64hPRT5TM8YF4hdUGZ1lWypn9FEaB9CAYFYghVTDQplgfAfj8eZk+qxXee BuJu/m2dI7LqvP86AB/V/WvW6kQ5HPziMPzsxHjwT135Ieo3cyUshqGwPf+VSxOU9QQI usz99AjUl3DQyEDtSkdYLfACEvCAeaAEDXET0Agh3sfDwna1jcIFCcsnM9dCVwdVvIpF Lgwztj+M18oImNcpimOAP178RMBaWnM3p0yRGFYhs6k2CZKCOTFHCp8Bm2s2bKXLwglO q3gHF9Py4ThrzEB6M6q6nqHflruQTg6295bvrGa5gorWU8pGHlvQWw8iQrdxJRtyVkN3 u/rQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=fVRqAiMW; 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 s20-v6si16441848pgk.87.2018.09.17.16.20.56; Mon, 17 Sep 2018 16:21:12 -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=fVRqAiMW; 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 S1729306AbeIREuE (ORCPT + 99 others); Tue, 18 Sep 2018 00:50:04 -0400 Received: from mail-yb1-f182.google.com ([209.85.219.182]:39611 "EHLO mail-yb1-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728630AbeIREuE (ORCPT ); Tue, 18 Sep 2018 00:50:04 -0400 Received: by mail-yb1-f182.google.com with SMTP id c4-v6so21589ybl.6 for ; Mon, 17 Sep 2018 16:20:31 -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=Z3jCLNQEqM+QuGe6MBSsyK872SEelhgmjjeOuoqczAI=; b=fVRqAiMWPoq4QZD2Ks8n4ww+ou7VW4cQXdWmfPD8na2AP83UeUfQgbwENM+TE112yC c8DpIfNO4txVaT8n8P9xU8vjljEm1Y0OxLaFA9/tofYe7/wf8jAYJPrNiqFJlqIqlApG AIF1IfLUqrTF82AAjzxs9lfG4bTdETX6rOeL4= 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=Z3jCLNQEqM+QuGe6MBSsyK872SEelhgmjjeOuoqczAI=; b=Cr/9eZq0PcaFmEpAcQmdswwPWDm/iCF1wkbzVzYnP5HmoBlQalJwafKIrXrYMJL2UJ 0Fm10XouInSOa7VDDAii6lJE1AOsOhKJ6F/u9lVVQpOIxnpfpfn+iDtSB8qnk0ASwp8J JfkxVamgq5LTvdQmYlXoeMUJnxCtzqDFTKQsi86dHWozQQ2nF6Oed9heXKAUE3ugGDNg 8Z52Up+k1ivQ0pY3LKkufonfXBgTw9OWxoq/3Ailhxqk4CBuCwZkT1gOfXSQzXMZ1Ix4 xsYH0/on0XaHk4rrAcJEoJgRjbnrNiGTWzecVCZJwg3ZXmITM2R9I0s90w/SY1sQrJMQ FGOw== X-Gm-Message-State: APzg51Ag9j1AFqNDJO/wGkpuUG8oko9KlhiCV5nTAsx13IC5eOT5MT0S 7hg5BjVYCFiMbJ5S6xI89jFEkkqaHdo= X-Received: by 2002:a25:c60f:: with SMTP id k15-v6mr11551574ybf.63.1537226430077; Mon, 17 Sep 2018 16:20:30 -0700 (PDT) Received: from mail-yw1-f42.google.com (mail-yw1-f42.google.com. [209.85.161.42]) by smtp.gmail.com with ESMTPSA id o74-v6sm898434ywo.54.2018.09.17.16.20.28 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 17 Sep 2018 16:20:28 -0700 (PDT) Received: by mail-yw1-f42.google.com with SMTP id l189-v6so11145ywb.10 for ; Mon, 17 Sep 2018 16:20:28 -0700 (PDT) X-Received: by 2002:a81:98d7:: with SMTP id p206-v6mr11073712ywg.353.1537226427839; Mon, 17 Sep 2018 16:20:27 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a25:3408:0:0:0:0:0 with HTTP; Mon, 17 Sep 2018 16:20:26 -0700 (PDT) In-Reply-To: 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> From: Kees Cook Date: Mon, 17 Sep 2018 16:20:26 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 16/18] LSM: Allow arbitrary LSM ordering To: =?UTF-8?B?TWlja2HDq2wgU2FsYcO8bg==?= Cc: John Johansen , 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: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. -Kees --=20 Kees Cook Pixel Security