Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp3173030ybd; Mon, 24 Jun 2019 20:57:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqwhWEaCqSeSCLQOfCNjgoKWdcMvoOWYCXEwno0TC8OZC9bpCKUqFofzPX8PrkBtKfu9MLpZ X-Received: by 2002:a17:902:c83:: with SMTP id 3mr93761921plt.326.1561435056032; Mon, 24 Jun 2019 20:57:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561435056; cv=none; d=google.com; s=arc-20160816; b=s5sr+hCTm4NmFT6zzi/rzcS8jPiPf432rVk12tUoTRXW3nawcuIfWKvrbB6IWH7SzV AeM1+jwQ2ygqoSOeThTT1s9HXoJ1R2sXaKOiqAX7+ppKK5aTkWX8Rf3vUvw4oBGnsENl PA+koFc6DCsLKx4Cm/xWHzajpreMog828OH3OZZydir4aI3QMy6FXYO0Yu9Ff41g0ssq OlZ/YC4TX2/jlTbiVUUZcT2dfGvPoh0vje2hih/97cROUe0XhPwJ6qdfVYxEwAzO6iVO r7E7vQW0drZwK3reRzBDTnFDYowgj+nziei1TG9JTgKld51e1fTdqQoiEcYM6t3So/Z9 5pSQ== 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:autocrypt:openpgp:from:references:cc:to:subject :dkim-signature; bh=uWu1XqMlR8Wd+/WAHcLTn592/8LDckPRE3Zxxo4/TqU=; b=QoaXFVHXfhLx7PrPxK8n6W/9OALeU3UECqOQHN0wwg6PsRNeHM3cA/dVgt/lFjrFxK ftU6YBZY2qmHkauEWaQlgZ99+rwBi1akLcwSOft3FOslCs6QZQJ88cG01CRttOEnYDiI Xy4rU/Ah4LVlOCDopSbEnOIyPohsmYcAQAxEx2YmNCLQwE4dPtg8YDcFkERwLQWwI+fR 0RLTl0uUearTlUA34YgNMqERpuXqlq9QUnWuT7MDxs5mIpXqsy2WZSp+lStUJqtIutZM vPgMQqlL+lXW/PiggXWWGh/Xv55M93HY/8kG6kCuvvuEc6REE4QX/Y/P8EZZGf1CTlfT Y3JA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@yahoo.com header.s=s2048 header.b=EL2ndxaZ; 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 j17si12442591pfr.13.2019.06.24.20.57.20; Mon, 24 Jun 2019 20:57:36 -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=EL2ndxaZ; 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 S1728524AbfFXXrg (ORCPT + 99 others); Mon, 24 Jun 2019 19:47:36 -0400 Received: from sonic301-38.consmr.mail.ne1.yahoo.com ([66.163.184.207]:41954 "EHLO sonic301-38.consmr.mail.ne1.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728401AbfFXXrg (ORCPT ); Mon, 24 Jun 2019 19:47:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1561420054; bh=uWu1XqMlR8Wd+/WAHcLTn592/8LDckPRE3Zxxo4/TqU=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From:Subject; b=EL2ndxaZ9ptXNdKnzdi9EcMi9gbhH7oNQdksiqysOQxE/3v1kN2/tJPEFkMop3Dy0CDDb9DkanIkvQuPLpcMW7fs7l1LVZVgMYODkvG4psQU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cmQ xd8n.s97YThmm8havSOooiKfPNDwUEtzbdvh8XRnS4mcFHstmK1_Hoe6Npri6JBC36VDozxh0wN8 T5wwnjMdrdrwqdpPhg1PMzz4r2lM3oZrYrwiju1AfinAmWpDPNR7yVWph3dq3WVA6IOebO0kiJDr vVrlrj63U.rAuUiIL7pTPWViqvAY79ykzItPbVw146OXUqVVne_Jk8lzOGny.F5C3l2Q9V9H9v.m WYCvW18WT3j2Hjl0RQId7ExjJQGx4iJlJ9QNyNQjWCm_7XnRhU6Ajur9TeZYQbdm9dIWVDfi0mgb OaM7cIUaZGqRwdRlDlJyfJ5vyEnUvkWxOJtVBO55GyjCM97cpXj3RGAMu2Rm0tk6ItwlG.x99IIP UkYE0qMvpvs5uJPrksfwaA_SjdMHhpczGoAZYMyvs3tJVstaYQxcY8gONbtNtVg17xjsUq.d3jWN wP0ECoghI00EC2CmjY9o- Received: from sonic.gate.mail.ne1.yahoo.com by sonic301.consmr.mail.ne1.yahoo.com with HTTP; Mon, 24 Jun 2019 23:47:34 +0000 Received: by smtp401.mail.ne1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 61c6ab428a5947a0da3e2cd303da163c; Mon, 24 Jun 2019 23:47:31 +0000 (UTC) Subject: Re: [PATCH V34 00/29] Lockdown as an LSM To: James Morris , Matthew Garrett Cc: linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, Stephen Smalley , Andy Lutomirski , John Johansen , casey@schaufler-ca.com References: <20190622000358.19895-1-matthewgarrett@google.com> From: Casey Schaufler Openpgp: preference=signencrypt Autocrypt: addr=casey@schaufler-ca.com; keydata= mQINBFzV9HABEAC/mmv3jeJyF7lR7QhILYg1+PeBLIMZv7KCzBSc/4ZZipoWdmr77Lel/RxQ 1PrNx0UaM5r6Hj9lJmJ9eg4s/TUBSP67mTx+tsZ1RhG78/WFf9aBe8MSXxY5cu7IUwo0J/CG vdSqACKyYPV5eoTJmnMxalu8/oVUHyPnKF3eMGgE0mKO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A4pRV8jEPIEWkzEACKFUnpp+wIVHpckMfBqN8BE5dUbWJc GyQ7wXWajLtlPdw1nNw0Wrv+ob2RCT7qQlUo6GRLcvj9Fn5tR4hBvR6D3m8aR0AGHbcC62cq I7LjaSDP5j/em4oVL2SMgNTrXgE2w33JMGjAx9oBzkxmKUqprhJomPwmfDHMJ0t7y39Da724 oLPTkQDpJL1kuraM9TC5NyLe1+MyIxqM/8NujoJbWeQUgGjn9uxQAil7o/xSCjrWCP3kZDID vd5ZaHpdl8e1mTExQoKr4EWgaMjmD/a3hZ/j3KfTVNpM2cLfD/QwTMaC2fkK8ExMsz+rUl1H icmcmpptCwOSgwSpPY1Zfio6HvEJp7gmDwMgozMfwQuT9oxyFTxn1X3rn1IoYQF3P8gsziY5 qtTxy2RrgqQFm/hr8gM78RhP54UPltIE96VywviFzDZehMvuwzW//fxysIoK97Y/KBZZOQs+ /T+Bw80Pwk/dqQ8UmIt2ffHEgwCTbkSm711BejapWCfklxkMZDp16mkxSt2qZovboVjXnfuq wQ1QL4o4t1hviM7LyoflsCLnQFJh6RSBhBpKQinMJl/z0A6NYDkQi6vEGMDBWX/M2vk9Jvwa v0cEBfY3Z5oFgkh7BUORsu1V+Hn0fR/Lqq/Pyq+nTR26WzGDkolLsDr3IH0TiAVH5ZuPxyz6 abzjfg== Message-ID: Date: Mon, 24 Jun 2019 16:47:30 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/24/2019 4:01 PM, James Morris wrote: > On Fri, 21 Jun 2019, Matthew Garrett wrote: > >> Minor updates over V33 - security_is_locked_down renamed to >> security_locked_down, return value of security_locked_down is returned= >> in most cases, one unnecessary patch was dropped, couple of minor nits= >> fixed. > Thanks for the respin. > > We are still not resolved on granularity. Stephen has said he's not sur= e=20 > if a useful policy can be constructed with just confidentiality and=20 > integrity settings. I'd be interested to know JJ and Casey's thoughts o= n=20 > lockdown policy flexibility wrt their respective LSMs. Smack is a mandatory access control mechanism on named objects controlled by the system. Issues of administrative control, like whether hibernation is allowed, are outside the scope of what Smack controls. There may be some subject/object implications, but I have not identified any yet. > These are also "all or nothing" choices which may prevent deployment du= e=20 > to a user needing to allow (presumably controlled or mitigated) excepti= ons=20 > to the policy.