Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1287037lqp; Mon, 15 Apr 2024 01:24:49 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV1nlR5Yp1UWfj6niZRKCHOLEoR8NDZeADYs3QURjIjg8ehQFZHakK7TXtG9CTXMJ894ASElpJuyhYKPi0el1N8wy5p5c9UMk+GPWKLxA== X-Google-Smtp-Source: AGHT+IGkzXZd0tE4T35vP8vB6A505kSUEElTA+5dWJrWzShAfx0FVQRP0EB7ANYZfKijNP4jFBZf X-Received: by 2002:a05:6a00:2402:b0:6e6:843f:1d05 with SMTP id z2-20020a056a00240200b006e6843f1d05mr12282707pfh.25.1713169489237; Mon, 15 Apr 2024 01:24:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713169489; cv=pass; d=google.com; s=arc-20160816; b=NA4L4TEFM5Tbm/MB+ac9hmvBVScVipqqE7R01v+4fHTxSAyf3dBPztnod89CnLOCQn 4DVIDNNn0TpcZb1kKeE2qHVu8YUEDDERMR3cLQy7cbJax1x3ira7G/ZrhSMJQT0LPdbJ 9LrtF8qfM8pqGQhO0Gm2Y+jJd3oNcF1lU1tiIE5MHzZ0n7h7lcgF4TCW+C6n2G5ZlVXR nDRYl6VLkRU1q3ovV86ymeU5DXm43H3FMDfy5gOhZlSBTamdctcW9kxzoi1WCUnozyjh emU0JxHlzJwUdbYVdl8H/5PANh5qeKRzvx9h4PniJ4olp8AyteCWsNgGp2GlTps1ZK9h gBbA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=pHvyqQ17Tn2O1Y0m3BirRC4u7vNkpQHjAXPedl5MpWU=; fh=sTJ4ySkhR91Ye97k+ArqIst64xoIedBkMG/SGcmcFwU=; b=q6ETShRea2s+VfjGBgcbzzrl4E0KiPOvC9lvf5Az2UaTetArj1zMdRBCMSAPGGE1o1 w+YiMBj3Ktoka9nY75PCxhJVr2PpTlalUeDaEI9YKJclucOXzd7anqwSdavKzxDczEhQ Ddt3co8trZq/O8dAjwcssv/8A0LyUy8E0Bim/4dPPJf1MEYhgWL9Ah8ImVhxyga0mATO wAuWCJAKuBd0PrdSOLNR2Y5Betl+ft2q5sylw3eL40IqhDv796AARCJD4H7pX38z1ws2 XuxtbDDCbV05chYsfRfrh+eZ/35LpIAJr3noQjnQ4vkYL/IrdkSkCY/+oprrqQoy740r 52Cw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@szeredi.hu header.s=google header.b=JY7WVL3i; arc=pass (i=1 spf=pass spfdomain=szeredi.hu dkim=pass dkdomain=szeredi.hu dmarc=pass fromdomain=szeredi.hu); spf=pass (google.com: domain of linux-kernel+bounces-144729-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-144729-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=szeredi.hu Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id b12-20020a056a000a8c00b006e0945e03fasi7719745pfl.162.2024.04.15.01.24.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 01:24:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-144729-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@szeredi.hu header.s=google header.b=JY7WVL3i; arc=pass (i=1 spf=pass spfdomain=szeredi.hu dkim=pass dkdomain=szeredi.hu dmarc=pass fromdomain=szeredi.hu); spf=pass (google.com: domain of linux-kernel+bounces-144729-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-144729-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=szeredi.hu Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 36F6BB232CE for ; Mon, 15 Apr 2024 08:09:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BE7343771C; Mon, 15 Apr 2024 08:09:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=szeredi.hu header.i=@szeredi.hu header.b="JY7WVL3i" Received: from mail-ed1-f48.google.com (mail-ed1-f48.google.com [209.85.208.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 21A2E376E5 for ; Mon, 15 Apr 2024 08:09:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713168561; cv=none; b=mjzdnf92WPCEdwg/OxokdDogFsf5JMoVvVWLDcyYRa074xWd2B2N1mvEZEe8UyNYEveSRcYnckTp2IWNll67/i0V2FIxwoMW0nPaNt7YV0F0VnDfuuoD2/cJEOBglpY7Xcxdpw+zBtsDD9MOsysa1uEolqcNlL0WUGSsW4kn3eo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713168561; c=relaxed/simple; bh=YwT+akiycT7zUiBlGUGl+TAPvveigRMKj7UEv7P0iyU=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=jKjjhcdzt2FGRX2QiM58lreMVa/flRJ2R0valReh8tACDbd+KgW5FJEDnb9F1Y5UQp0MTmkelMvQRneC9Zqf8GRoljFFeC8htyv9Ewn1e5I6V9NJZtw51ByHnlt2fLetBURhBbtFAelWUKMNmI35LLqPGNbG/eo4SaSAYnBHiWE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=szeredi.hu; spf=pass smtp.mailfrom=szeredi.hu; dkim=pass (1024-bit key) header.d=szeredi.hu header.i=@szeredi.hu header.b=JY7WVL3i; arc=none smtp.client-ip=209.85.208.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=szeredi.hu Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=szeredi.hu Received: by mail-ed1-f48.google.com with SMTP id 4fb4d7f45d1cf-55a179f5fa1so2749676a12.0 for ; Mon, 15 Apr 2024 01:09:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=szeredi.hu; s=google; t=1713168557; x=1713773357; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=pHvyqQ17Tn2O1Y0m3BirRC4u7vNkpQHjAXPedl5MpWU=; b=JY7WVL3iVR1YLrQJA7nhoQOedXkhesVg2XEwHh8rAUu/acPKqm0qf44vf+48wWkWTX +O6aby62bOxOX1VjWQBgTgy0fQX2rx9AYcF3Ds854NornsqjRUFMozqBVDanOliOXjaC ABMew1MNiWf/XcKre597vqyus32SD6AwiwqYA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713168557; x=1713773357; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=pHvyqQ17Tn2O1Y0m3BirRC4u7vNkpQHjAXPedl5MpWU=; b=kr6iX3v5HdPnXZlZElWMtifO6W/ddsgkfv7ENnwA9dJ3yWYIPFIznJg5zKJjZ9mujz U02NAUAbf7rLeimBLm5gkE6a1da4LNIYpdarJ6Y5hN0At2tkwouqhLZ6lr/Ps91Y6i/9 aagfRmoyKpwW6HNks7KcqpODOyJ3J3mJC3Fk+j4yLGyfASA/OmMotS/7ICxQ9eX7mYvw h5wNSs4Pxa7Sa1ve4eG0FrogPEZMzrFoxzpRIpbi39TbDBQl1xoCTocc0e5/bvZ6g4fR IE+gr+Anw0Uu/fwFWQv0K3OhJrkP6ZPIkYtgoQ09P8NDsUNiIDujAEFqy5nOmNf1UTfb i99Q== X-Forwarded-Encrypted: i=1; AJvYcCUSij340TErSBKNX+V9k8j10PJZMladkwPtlJEXK0aH6iCXyQX/9MAIGQ6XaegTB+u9hFcznqtUnpu4hKDjtAXDGeAVBJh1aOvdaxqb X-Gm-Message-State: AOJu0YxkZNTI5XH4XrJniyfQX0BMQLx4b51S0BaGa2rAf9u/6Wwgrrl7 0OFMAuukbmZP7pIgEpONmbZ5wht9V1ZYDkDZbbn9OvKiSfjv1yFfV5IwKfj9Ouy1pnpKHOfH7yj 7WQZFFxsJoqMdzEGJqP7m8g5fLLu9Xh8Djv/07w== X-Received: by 2002:a17:907:7da1:b0:a51:b0e1:8640 with SMTP id oz33-20020a1709077da100b00a51b0e18640mr7941615ejc.9.1713168557383; Mon, 15 Apr 2024 01:09:17 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240412140122.2607743-1-stefanb@linux.ibm.com> <20240412140122.2607743-3-stefanb@linux.ibm.com> <89b4fb29-5906-4b21-8b5b-6b340701ffe4@linux.ibm.com> In-Reply-To: <89b4fb29-5906-4b21-8b5b-6b340701ffe4@linux.ibm.com> From: Miklos Szeredi Date: Mon, 15 Apr 2024 10:09:05 +0200 Message-ID: Subject: Re: [RFC 2/2] ima: Fix detection of read/write violations on stacked filesystems To: Stefan Berger Cc: Amir Goldstein , linux-integrity@vger.kernel.org, linux-unionfs@vger.kernel.org, linux-kernel@vger.kernel.org, zohar@linux.ibm.com, roberto.sassu@huawei.com, Christian Brauner Content-Type: text/plain; charset="UTF-8" On Fri, 12 Apr 2024 at 21:09, Stefan Berger wrote: > I was hoping that this would be sufficiently generic to work with > potential future stacked filesystems as well that would need to also > provide support for D_REAL_FILEDATA. I also have very bad feelings from IMA digging in the internals of overlayfs. We should strive to get rid of remaining d_real() instances, not add more. On a related note, D_REAL_METADATA was apparently added for IMA (commit 11b3f8ae7081 ("fs: remove the inode argument to ->d_real() method")), but there's no current user. What's up with this? Thanks, Miklos ,