Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp3124512rdb; Tue, 13 Feb 2024 07:34:06 -0800 (PST) X-Google-Smtp-Source: AGHT+IHWGxbqWA6J131M6QBZ8bJtXPGfRh4jlhT7uLGRblIVQ4UMf06uq+PRj/RkyMQeVrm67GSP X-Received: by 2002:a05:620a:895:b0:783:38e3:a0f1 with SMTP id b21-20020a05620a089500b0078338e3a0f1mr9449940qka.4.1707838445869; Tue, 13 Feb 2024 07:34:05 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707838445; cv=pass; d=google.com; s=arc-20160816; b=csQwHCvfs9j6MWOtaI1wc/+E+Xa6g1247ITL8YptX5ntVGdZlOc/1ss8DEVFwU7uuT j5xyALgJRwm7omIVoK+T8ekA/U/lfIdb/X4n+BF2THi83rbh9e4antjS0DCHoyggPyAs sieDxYvHBzQ7lROnj1AKifYaCaslFq2C2OcqdKW/cNYwq1Unqqp3V3lXSgU7n81V2WaO yAoSmCY/ZEfYPNKqDcfMi2YSu31e2s/FAh7bhPMpNPDyoShjRQ5N57jMfzJ33of+ZnCS QLG9MfuwI/8TNQMKIeSg/GwZukXbPD8Cygw+bLTsb+ozcCksUfVzuswovA5Meu5uQiul 8teA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=WqydKoyTOasPxiPJoWDY9vsZCIGGHm243lsYdLUdgFs=; fh=4ykE/WPAliRa7TqLq/fsZW2LW73CiX1PkAxO9k/7qUY=; b=OTYR4rdUzdgN+H29Mq7n19LKBsnwJXZKNO8oko6OxbpZ1MC9YONs65eYjjOW5h33y4 TWm/eib8QtNIigUfWUK5QTebagD/0wqFmr34kbLyh4m1r5Sx87/urXEwwd0dide79lL+ eeV670tYQYbiTbfilLrr4Rb6PpN7jtYewhRxhplbbRUMjtWEyeSYrvheo9FXr1F1AQCD +RZd2QCyHjO0ENlv7UtNIjeV0x1nushLcNOAbqdw9n7VDRLSV46kTdFBl0YHTVwfhF+X Bwc+l7yEN3hFAIjfGFKMdBZAP/9ImmWjiaCBNv6oF2UTGxCiVKIxKkQ/s2lYSFefS2f/ 8NYA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@paul-moore.com header.s=google header.b=FaJ+SJ2r; arc=pass (i=1 spf=pass spfdomain=paul-moore.com dkim=pass dkdomain=paul-moore.com dmarc=pass fromdomain=paul-moore.com); spf=pass (google.com: domain of linux-kernel+bounces-63809-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-63809-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=paul-moore.com X-Forwarded-Encrypted: i=2; AJvYcCVNq48i7Rhb9ohZLd/U5Du2ZRLI2i6p2epExqEybA3k2x+ZlDZQvVFm50o6tUKMlG7KeasHHVoJ9YA2n/LZav0CuSec78sld45LhmHAdA== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id h1-20020a05620a13e100b00785d6d13172si4704428qkl.164.2024.02.13.07.34.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 07:34:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-63809-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@paul-moore.com header.s=google header.b=FaJ+SJ2r; arc=pass (i=1 spf=pass spfdomain=paul-moore.com dkim=pass dkdomain=paul-moore.com dmarc=pass fromdomain=paul-moore.com); spf=pass (google.com: domain of linux-kernel+bounces-63809-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-63809-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=paul-moore.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 96C941C21CF4 for ; Tue, 13 Feb 2024 15:34:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 61C5A5EE65; Tue, 13 Feb 2024 15:33:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=paul-moore.com header.i=@paul-moore.com header.b="FaJ+SJ2r" Received: from mail-yb1-f178.google.com (mail-yb1-f178.google.com [209.85.219.178]) (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 BAA805EE60 for ; Tue, 13 Feb 2024 15:33:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707838436; cv=none; b=O4bKhYoVdXaDSO9eBTXW1zdRFOSvnZvAedd6CqLTzKTzgptmjvWha4eBOq1ymBXxMOjQYxNAUqeYTTa1+91KKbDSCfpuISGF7nX0r/AbmkU//NiGbtWkq1xrepnngnGXrCxViJDjWcePT+/eJgVf6USXXI2ExsDzJZjxh75mvIY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707838436; c=relaxed/simple; bh=1wgOC11E4WsIHJN8sQAbPNgNjm1Tj7LN4SZFvsn5QAw=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=gQjpSXhkmxl2mxliE1efeO8vtAxoTP/Eug8F0Sp+/BiF8TPUdvbIIcDWnbKX9FkVolnEHAOzaSzMwErO9OGYfM1jRVOLVb0tdT7qJa4Li5H2Wle3vriPPu6rEvNcwa0Uaoe1Gofcpt1VP4nVkhpYW34j9Ex70LF27p9XrLrHESU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=paul-moore.com; spf=pass smtp.mailfrom=paul-moore.com; dkim=pass (2048-bit key) header.d=paul-moore.com header.i=@paul-moore.com header.b=FaJ+SJ2r; arc=none smtp.client-ip=209.85.219.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=paul-moore.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=paul-moore.com Received: by mail-yb1-f178.google.com with SMTP id 3f1490d57ef6-dcc80d6004bso793150276.0 for ; Tue, 13 Feb 2024 07:33:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paul-moore.com; s=google; t=1707838434; x=1708443234; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=WqydKoyTOasPxiPJoWDY9vsZCIGGHm243lsYdLUdgFs=; b=FaJ+SJ2rWv9CKMitnT5LLuR41tbjkrm+BMWVk5oD+ec/erdSd9QVZ2je05QqdnMRWk Im9W0wj5gHWVvnF2/3Oma13A1S5T+br7kgBW/UFFPMaSUFiGbNlBIxfTdJlmxdh52UUf /hruPYfY4OxF4TPP7Huzhtzpuxl4e9co9fH1yQajmkbDGsktPzyqUXWSQG7yj+xzUOXR voiLBL6f/Vkb5iHgvEQ86RFnJNBzxZ6hNVQWFUZGuVN94AHcc/dueNO1wElhkCRbEHLA 0GmF5ZbfUFqLBPr1WQ5pEI+kFOBsp/k3RBLKJjlSVHcE8WVQtkGPF+1j2LqDeLfvBj0q +DSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707838434; x=1708443234; h=content-transfer-encoding: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=WqydKoyTOasPxiPJoWDY9vsZCIGGHm243lsYdLUdgFs=; b=qbX6XQjJmsfzhwTNObYKSKGnZfqGlODyHb5pfGMROp7Bn/iGJzGEmkbszzdbaAeFxs cneStZzGea70apKbRzHYNA8yWhdkaFeCasyPTj6g8s/kZwomMel31Y0Xym5LZkflcy8z 827pbVhSn43BLWJcuKQtptZZGXcG/nRjL/jBGfYhQ+GQwHEFFwqeT2gUtXxta2flwfVI aZEeyJzlT46gy6byVIg3MhdnWotX7mQV0PhJ5hYW6W6EDu2KnfSc1iFmcD0RFd+nMvRz WwM3pmdDpN1NGGjp7lcy6wWHryhpUlkoljcBhOJMm6lyTgYDMaokCSJdVjPUprhKGxqp nrng== X-Gm-Message-State: AOJu0YySIW2Ssdc7id024s+guUQQ8hErCCezQAnDkPxBYg/rx+sK3q6E LEYTGSce7zUrMbtam/+f07/XA4sHKWfYcV69RNqWJU0bBfu9p+R9vj3TS0LJJsVSA/UJzERo18r AdRb4UojfBRe0QkfhJsBY7weUPJcoDtpL5pJb X-Received: by 2002:a05:6902:569:b0:dc6:bbeb:d889 with SMTP id a9-20020a056902056900b00dc6bbebd889mr7861710ybt.52.1707838433767; Tue, 13 Feb 2024 07:33:53 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240115181809.885385-1-roberto.sassu@huaweicloud.com> <20240115181809.885385-13-roberto.sassu@huaweicloud.com> <305cd1291a73d788c497fe8f78b574d771b8ba41.camel@linux.ibm.com> <05ad625b0f5a0e6c095abee5507801da255b36cd.camel@huaweicloud.com> In-Reply-To: <05ad625b0f5a0e6c095abee5507801da255b36cd.camel@huaweicloud.com> From: Paul Moore Date: Tue, 13 Feb 2024 10:33:42 -0500 Message-ID: Subject: Re: [PATCH v9 12/25] security: Introduce file_post_open hook To: Roberto Sassu Cc: Mimi Zohar , viro@zeniv.linux.org.uk, brauner@kernel.org, chuck.lever@oracle.com, jlayton@kernel.org, neilb@suse.de, kolga@netapp.com, Dai.Ngo@oracle.com, tom@talpey.com, jmorris@namei.org, serge@hallyn.com, dmitry.kasatkin@gmail.com, eric.snowberg@oracle.com, dhowells@redhat.com, jarkko@kernel.org, stephen.smalley.work@gmail.com, eparis@parisplace.org, casey@schaufler-ca.com, shuah@kernel.org, mic@digikod.net, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-nfs@vger.kernel.org, linux-security-module@vger.kernel.org, linux-integrity@vger.kernel.org, keyrings@vger.kernel.org, selinux@vger.kernel.org, linux-kselftest@vger.kernel.org, Roberto Sassu , Stefan Berger Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Feb 13, 2024 at 7:59=E2=80=AFAM Roberto Sassu wrote: > On Mon, 2024-02-12 at 16:16 -0500, Paul Moore wrote: > > On Mon, Feb 12, 2024 at 4:06=E2=80=AFPM Mimi Zohar wrote: > > > > > > Hi Roberto, > > > > > > > > > > diff --git a/security/security.c b/security/security.c > > > > index d9d2636104db..f3d92bffd02f 100644 > > > > --- a/security/security.c > > > > +++ b/security/security.c > > > > @@ -2972,6 +2972,23 @@ int security_file_open(struct file *file) > > > > return fsnotify_perm(file, MAY_OPEN); <=3D=3D=3D Conflict > > > > > > Replace with "return fsnotify_open_perm(file);" > > > > > > > } > > > > > > > > > > The patch set doesn't apply cleaning to 6.8-rcX without this change. = Unless > > > there are other issues, I can make the change. > > > > I take it this means you want to pull this via the IMA/EVM tree? > > Not sure about that, but I have enough changes to do to make a v10. Sorry, I should have been more clear, the point I was trying to resolve was who was going to take this patchset (eventually). There are other patches destined for the LSM tree that touch the LSM hooks in a way which will cause conflicts with this patchset, and if you/Mimi are going to take this via the IMA/EVM tree - which is fine with me - I need to take that into account when merging things in the LSM tree during this cycle. It's not a big deal either way, it would just be nice to get an answer on that within the next week. --=20 paul-moore.com