Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4557514imm; Mon, 17 Sep 2018 16:31:21 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZb0cA13tMrEGhvZvYaQJJ4Y4rCJAw8BSGjO3zEBf7qNrrZjSDCpQ1eQIxSbA7TELMkbfOy X-Received: by 2002:a17:902:9696:: with SMTP id n22-v6mr27164448plp.212.1537227081667; Mon, 17 Sep 2018 16:31:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537227081; cv=none; d=google.com; s=arc-20160816; b=N8Li23+IHdF61nCnS9B7B3CFkK7KbFM9AmJvxtpubDUD7NtI87yRmaLgLrKffDTLK2 rq9XQmRBsDqvLigMpWLMx1r3LTHK/ArEwTGZ3n7BbhIicdoJ9o77vpcPnWoUKWPTq3mO yh5RaSdYAkVGGUPrZVUPOa3C43niZ7VDjJfhXu21wmkNzsCmWUjsUSBcF7rYBIFNkxKh JSyPmpYhO5BeP3A/Bvmutp2mF2oaN+Fjkb5grnhDaxhva0VWOd4wkVHo70U95unYxYwR ZSJImk1P47pluBkolyDH2QBEKgBfzBDSLMR9g7WNSFFFIZpB7Bs6i7I28fxw7rRVFvpz wGCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=XnzdHcSDfW7YrS7IHagChIU8lfaTzV3cjiStkPFdRpU=; b=X5ViYoTtK9UCg6EnvQo+WzkSpGM4eiQUtg3lTpG+9Q1ajG1ljlPKcrZeFDJUNGZERk I9feObfMYE6wsG3p0gqxTdcOpDBUMw7d6SZ/NJmcVRdUNX4eXAv5+IWfGDrlSI51AXqt Tnwqx8vB8kTsh8sr2OjqIl6UFngZXxFGMFf7Vylv28jkIUbRRlX7K1Rs7uCn59qxFiJs lY/frJ4TR9/zxrFzmCdJFACTR3Yrh2mpdxPmuxYZtowCOCpo4ua3dRFhNFxPGaGxj0ZC lOF0mxUiu3PaHcSr34X/1TG3dmc84E/PCa+ui3IJ7O7TWb/jXy6OvAicQ2Ubxa4S2Pky +ImA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@yahoo.com header.s=s2048 header.b=NxqKS6lG; 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 x13-v6si16650907pgx.19.2018.09.17.16.31.06; Mon, 17 Sep 2018 16:31:21 -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=@yahoo.com header.s=s2048 header.b=NxqKS6lG; 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 S1727211AbeIRFAi (ORCPT + 99 others); Tue, 18 Sep 2018 01:00:38 -0400 Received: from sonic306-10.consmr.mail.bf2.yahoo.com ([74.6.132.49]:46180 "EHLO sonic306-10.consmr.mail.bf2.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725896AbeIRFAi (ORCPT ); Tue, 18 Sep 2018 01:00:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1537227061; bh=XnzdHcSDfW7YrS7IHagChIU8lfaTzV3cjiStkPFdRpU=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From:Subject; b=NxqKS6lGJ4oQrS/NVknsgu9mdvtIU372ibQSArCxPT9mu6x/XbXkrrvxZurQi65+fpgdsJp30V0iAX3VxmI5p4/FYYcivuVWm4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_sC.42mOFVYWJlU4hLaKB0dgZuYDtlIGUJ2cK2qr2ZIuhSS7yaAXACcBhxEiEyGoXZeTdu8tM gKzm3iXuxDraHX.dsrAMjY9wYciJbkLAyvyVwAiIR2hMxYkHApi28iy6.QxtYjS1q6S8TR3CnbsB C.1os8XuZ29MSqlta9JEaZaduPiDdSBpLsoZPA8.hzFUKWcSIdx6vDXbaVJAazFj0zpQBHJSKwcV Oy02xdIrD9PlOwfPRCTShrzaeMcm8 Received: from sonic.gate.mail.ne1.yahoo.com by sonic306.consmr.mail.bf2.yahoo.com with HTTP; Mon, 17 Sep 2018 23:31:01 +0000 Received: from c-67-169-65-224.hsd1.ca.comcast.net (EHLO [192.168.0.102]) ([67.169.65.224]) by smtp410.mail.bf1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID be572c3cd7073e44635ae2a5e6699ae0; Mon, 17 Sep 2018 23:30:58 +0000 (UTC) Subject: Re: [PATCH 16/18] LSM: Allow arbitrary LSM ordering To: Kees Cook , =?UTF-8?Q?Micka=c3=abl_Sala=c3=bcn?= Cc: John Johansen , James Morris , Tetsuo Handa , Paul Moore , Stephen Smalley , "Schaufler, Casey" , LSM , LKLM 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: Casey Schaufler Message-ID: <3a90fe88-d74a-2c2c-c949-cabcaad2e1da@schaufler-ca.com> Date: Mon, 17 Sep 2018 16:30:54 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/17/2018 4:20 PM, Kees Cook wrote: > On Mon, Sep 17, 2018 at 4:10 PM, Mickaël Salaün 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. What harm would it cause for Landlock to get called before SELinux? I certainly see why it seems like it ought to get called after, but would it really make a difference? > Good point! It will be easy to add LSM_ORDER_LAST, though, given the > machinery introduced in this series. > > -Kees >