Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp8179734ybi; Thu, 6 Jun 2019 08:00:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqxOToQRiVIpmTlX7MdAGF/0ohmXf7Oo3uD8p00NOkreJSVsZhuBayRuVWeNZOr3VB98ReyB X-Received: by 2002:a17:902:b947:: with SMTP id h7mr7661684pls.267.1559833206754; Thu, 06 Jun 2019 08:00:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559833206; cv=none; d=google.com; s=arc-20160816; b=g++Xe2K4x1JGG7Ygx8098Em53dylXrkC2Mie8/7+ISbFvzyvAPjKsmGuKt06f4NW0Y 8HMIr3s5E8zsd6ekWXXtxgDTLHUATk+fzP9o1dca1WFOztOXoD8Be6K5D5P5PBjdnjbI prbwviaY2Z1OmdK6KDkKdeDS4+LaPwNCDN3UvGUbcvDIcLlu3AfhSxwRFTzAIVYWrk7U slH7RhpfXoZRzzoZq6RdsU4qAhrtG7AK4xy6xv3xxBSzyiHnAbMbk2AWK8DXioWO5GVN ESzkTEGpu3YimIp1RU++q/dDHv85CAi7jHZLkkzyTFN7DdY47esVEtNIRZYJeXGeeuDy cipg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=YAu2DH9Gh0ZQ6HRYIfl6NOBT9O8LotQbvARXbdHVaps=; b=U2j6FkrzzT3i3APszl4+Ue3fsDaWlKLqgCZFuWA2E9IrSRL+x86I5q5pItoFcKBs/t 4e/duWQEPWAX4OSRLpl4hNpmqlC9fqIW+fXMMOFOSOnXc5pPC+jVrzEYKnqa+fgue0ea 8YB4FO8WO/f9OO8pMjNKBAkXyIoqWEoRDX2a6uJqzTzUVZ0Sc3c3QCleU+KIr+6dZQ/v z/+FDbP5QVLdGaYYfMIhTRPLRIvCBnn1qg0ax58WYXDpyG09ohha0J7pwlYJeZcKT/ms 3ZtuoPc6KFU/82QVaLWZKCxqZp3JqiAAXP0Zpy1c8P12fVSeM/4hXX0FDHAFW9tt0oH/ jkPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amacapital-net.20150623.gappssmtp.com header.s=20150623 header.b=1GFYjUK0; 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 r130si2140808pgr.509.2019.06.06.07.59.49; Thu, 06 Jun 2019 08:00:06 -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=@amacapital-net.20150623.gappssmtp.com header.s=20150623 header.b=1GFYjUK0; 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 S1729128AbfFFO5a (ORCPT + 99 others); Thu, 6 Jun 2019 10:57:30 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:33418 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729107AbfFFO53 (ORCPT ); Thu, 6 Jun 2019 10:57:29 -0400 Received: by mail-pg1-f195.google.com with SMTP id h17so1526086pgv.0 for ; Thu, 06 Jun 2019 07:57:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amacapital-net.20150623.gappssmtp.com; s=20150623; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=YAu2DH9Gh0ZQ6HRYIfl6NOBT9O8LotQbvARXbdHVaps=; b=1GFYjUK0Nf7MEISI0XlC9f3t4uGI4rDrxgMVMYNhf1TgM8/gH35ijWtVCk1M7MtRG1 aEJNRIzbEEekpsV4XhSx9mVGlQvzHxu6OoDZq67iCBrFrUMDndZ1cWMv6qUM4gzIJbiU BkjVRFs1DTAM6qZhmH1EVu1m8577MVEZ6d3sfTAosJNHuLui7yzr8nqgnn1KmLqNXx1L vAxMANQZx3WrTFrCMd4dfHKDU5d1uQ6jJK01oel0e/47WrhV/2sWrQ6w/a5+JwDr8OV2 k8iI4E1O2I83xA5gVHncyZHbFBqCH9QsBwF8kNUMpA/nhj8CapLbH3J3GByfBvxOXPcx 67pQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=YAu2DH9Gh0ZQ6HRYIfl6NOBT9O8LotQbvARXbdHVaps=; b=tvF7qC3JzCXPG+wRsdYYcABgk8llJ/zDIzBkRde1rNiOYeL0tZwNDKtVRX2fdO1CEQ RukRUoDvsIyViHS8SUf2IbsWiPYLI0yVHTC5mgi3PpID4q22XUdAyJjQ7iARw0kP6z4a uNuFtesZUtx0DXOZuHOGoAjbU9ei4P7HX9U04/OKnQUywue2jcAcKj5Sm4BmVPgu5yka aAkZaZ3N2FxkymR4zwOQLqljOt8OY2jwSd7Ug+b8S1SG6/0l2VOsgLFijJ1NFnXYCf6s Bwf4OzD42LVtKXESOBo+Uo43+GFGi+WB3H/0+0IDz+DpL+ZZF3rnhmGUINRIeXljKNPz rHBw== X-Gm-Message-State: APjAAAVWHGH6PCYvm3JVg1ow1yXX0m2lRc5zXpUnkrJ6Xf9mM3syvPgk tB/V5WNkbv2O0dY049BOUT1rKg== X-Received: by 2002:a17:90a:bb94:: with SMTP id v20mr317916pjr.88.1559833049146; Thu, 06 Jun 2019 07:57:29 -0700 (PDT) Received: from ?IPv6:2601:646:c200:1ef2:3cf4:ba16:ce9b:b777? ([2601:646:c200:1ef2:3cf4:ba16:ce9b:b777]) by smtp.gmail.com with ESMTPSA id j22sm2261397pfn.121.2019.06.06.07.57.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 06 Jun 2019 07:57:28 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (1.0) Subject: Re: [PATCH 01/10] security: Override creds in __fput() with last fputter's creds [ver #3] From: Andy Lutomirski X-Mailer: iPhone Mail (16F203) In-Reply-To: <155981413016.17513.10540579988392555403.stgit@warthog.procyon.org.uk> Date: Thu, 6 Jun 2019 07:57:27 -0700 Cc: viro@zeniv.linux.org.uk, Casey Schaufler , raven@themaw.net, linux-fsdevel@vger.kernel.org, linux-api@vger.kernel.org, linux-block@vger.kernel.org, keyrings@vger.kernel.org, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Message-Id: <176F8189-3BE9-4B8C-A4D5-8915436338FB@amacapital.net> References: <155981411940.17513.7137844619951358374.stgit@warthog.procyon.org.uk> <155981413016.17513.10540579988392555403.stgit@warthog.procyon.org.uk> To: David Howells Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Jun 6, 2019, at 2:42 AM, David Howells wrote: >=20 > So that the LSM can see the credentials of the last process to do an fput(= ) > on a file object when the file object is being dismantled, do the followin= g > steps: >=20 I still maintain that this is a giant design error. Can someone at least com= e up with a single valid use case that isn=E2=80=99t entirely full of bugs?=