Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp18702rdb; Wed, 7 Feb 2024 19:19:47 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCViJ5h4id/hDbwB+yDfwBxsVu+pGvWiKW6oCSyKHZJq+2PvqBW1/OJYIku/wtrzcyFiDaOMre62fxjHaTDmKqfjYgjwjoZd4/R1L0iXQw== X-Google-Smtp-Source: AGHT+IHifNInYhb65AMnDvO5qS9TS0aIcs7RkU4Rh9wAY2qKr7l04ipPQr1FN4tZJnBZ4ShTKTkW X-Received: by 2002:aa7:8594:0:b0:6e0:54aa:e61a with SMTP id w20-20020aa78594000000b006e054aae61amr4719090pfn.25.1707362387539; Wed, 07 Feb 2024 19:19:47 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707362387; cv=pass; d=google.com; s=arc-20160816; b=Co8BuVfCHGUTmE7F9rPFRoPQ+tWWqrBHmMv5PjOqs34pardBlM7xa16KzFebkXjks8 Q02iNSUwc3IlOcoBj15kF1qN4gFmmxsN7j1ECmu8LDyfhmG/J8Jg1Pe/irP0yKJP3D8G nr7S5ZHiFABLbhf7jGKfzym57KlHyzL9+A9Wl2ja1qtPpcgt9ZRQsTqJZcu7v6js164F UFfLjRb7pHSNWeU2RtYcliqBpU5WvzRDbKZ6VzKc2Jqv9KqeJGnNoO7r3ae1tzVooXeu D9mEsa3CI47xFv4OI6sPwu4cj1dWFwlrs/RJlM4P7bB09KU3fCoaeMbi72MGZyzn1k7f FVYg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:references:subject:cc:to:from:content-transfer-encoding :content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:message-id:date:dkim-signature; bh=O9p45HvzglPypNb/Rrrr7bt9K/43QfCMN3mSwEi+7Tk=; fh=7z+/T97HmIktDp3eHXQ+TbX4O4A+RiLHzFNbvaG0UBg=; b=cSaeKR4XDrOm4p56gnC+t2Qgx70KvTJ4Ecq6TUUw0rZQTmO+kqCtLKgUy4MqVPH2xi jrZH32qJl4yk8ZL1ryAPIH3TVRnc8B7//Y88T7i7Z/Hd0qhZypy+g3P3I7YujSSE0jkE XL2weKXkMsRTW+b4xPhGiweGAg+sBwpDu8Q/U8TP/CPQNuDnmTmwLOGHmvmcNI9tFw4F 08hbH+z9CyZGSvQUZpZOjUo17Wako1eCjjQ4RrvDPk+JqaasEFILmLYUSodJH0u/4rGX ZOcBJXVl/jv2dE1w/4D3buP92JybCiY7U/oyUZV8iFXxCz4FotxeZyql+zo2NbF7IFks Egjw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@paul-moore.com header.s=google header.b=A++ohpRO; 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-nfs+bounces-1833-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-nfs+bounces-1833-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; AJvYcCVuN7sja/WvnDGg96DpNO8zQhvf/PFKgAfSp2oUOcxyzlUfUGlO2GenagrBHCnQkNbIQzNzRi9Hrxpz3/5dlg625cbE2NtAZ8S+9SHWUA== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id c12-20020a6566cc000000b005d69d168dd6si2740903pgw.832.2024.02.07.19.19.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Feb 2024 19:19:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs+bounces-1833-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@paul-moore.com header.s=google header.b=A++ohpRO; 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-nfs+bounces-1833-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-nfs+bounces-1833-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 360A2282717 for ; Thu, 8 Feb 2024 03:19:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9D1E025624; Thu, 8 Feb 2024 03:18:40 +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="A++ohpRO" X-Original-To: linux-nfs@vger.kernel.org Received: from mail-qt1-f182.google.com (mail-qt1-f182.google.com [209.85.160.182]) (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 D5B1A1DFC5 for ; Thu, 8 Feb 2024 03:18:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707362319; cv=none; b=klYgvQshZXgPFbambF/SmucGPIsLoJgu3ntX9vw/1aZ1nTEs54ReZfd5yaqst5gHaoW2JphN/p/YmT/Wt8R2MShePjjpHR/bE8Mzzfy8Yx4eBKzh9Gbg2U2dn+iDYQz+BvnBFd1RBt1Cq5htKETtqjUlh4GaRgYIzcucGNWePHY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707362319; c=relaxed/simple; bh=x0PgWCtA6jyKybBYDAMvlB50lhMzr22RVybs/A+ma+k=; h=Date:Message-ID:MIME-Version:Content-Type:Content-Disposition: From:To:Cc:Subject:References:In-Reply-To; b=tkjtN1bzQv03Fc1bf7FSHX7V4+7Rxnnz/0D9TilqF0HFCmysgngs4baau+YNQzPvezgUT8fTZw9X+2vQr9oE1MSo/gJuBniX8hZSa5e+c/5QK1VaFtNelm0rAKr+SQiX3RQ0JteBu++0W3kHPvRrMTUCIqQBWaCuf3bSg4kwGC0= 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=A++ohpRO; arc=none smtp.client-ip=209.85.160.182 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-qt1-f182.google.com with SMTP id d75a77b69052e-42a0ba5098bso6606631cf.0 for ; Wed, 07 Feb 2024 19:18:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paul-moore.com; s=google; t=1707362314; x=1707967114; darn=vger.kernel.org; h=in-reply-to:references:subject:cc:to:from:content-transfer-encoding :content-disposition:mime-version:message-id:date:from:to:cc:subject :date:message-id:reply-to; bh=O9p45HvzglPypNb/Rrrr7bt9K/43QfCMN3mSwEi+7Tk=; b=A++ohpROXM2ol5WPul2+22E0Rz/N5rL4ChcIl1vNhxPzlnD1sDDTCP9/AS2MS4n/xQ SblcYbA3lsPSV9uaBaN4gFW+ePNJqO1qqPhY1V7CQ6NTHfGBRSNaaQXFA0W6ZGDGxq5C lh/JFXVDPrtLu6XY0X/SzJjS/OU8FSC4Tk3u3iLnCe1UhQT9S9WoIPM5DwMKKfq2yb2H ch3HSvHurBbnmMrF7fcuLt3D3blOFEoQBdELLsKpDFJ7Z7MD0G43i+NM/DhjwlsZw4aI Swx5n13SN3ZIW7ePzPuKwpMQAWe48iewVyIZSqu4oQp1lbMq4QoZGZUGOW1je+fZXGQX BmsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707362314; x=1707967114; h=in-reply-to:references:subject:cc:to:from:content-transfer-encoding :content-disposition:mime-version:message-id:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=O9p45HvzglPypNb/Rrrr7bt9K/43QfCMN3mSwEi+7Tk=; b=pYzJwj4qwtC6So2/CgmqTKoaxAlITi9QGw+KTIX37DPfrCiVl8IQFM/HUtVqfrvQ6L bOoMcDD3vNWzDyyDQKPwWskar/ELEq92+mwthSGU3UxDpp6SZKyWDyyFLc1IF6Xkq/aL mQZLO7Rv/NoWr6HwoAIBlSgWLaRkDJVX1MT/j6ASkcH4HgYdWGbvXsJ9f/K/2R7yWA/+ mXlnNPnRpUWHRxZMDUzIE2p4kLXSc/7azA0rsIq6l9ELzwsps2CeJsAyET73miuMz/jp l/uI70HqZhM9MMsFsq6KX8tMJ2uBzZLg+D+ISVTpYcC7excOe24C12+dxcI9Do1GLeLD 8bJw== X-Forwarded-Encrypted: i=1; AJvYcCVW7egAsMn4hKffalxsrIILbmjHEXTtFcaqO1mBI/rp5WszBfAiOJIWnqYXUoiHWFO19FGLS2HOpEIXpavbpFk2yAYbR/rbIQo3 X-Gm-Message-State: AOJu0YyBEo5ugeGVrxjBEgK2egVZtehwiGkxm9jNTpYiz9HwjgiWHX0H vllfENlTnch4WPn4ueO4ov4Rf1NaPB8P9k+tQLSGau6lhXNUMxM8DIDLM+gLsw== X-Received: by 2002:ac8:4406:0:b0:42b:f32c:33c9 with SMTP id j6-20020ac84406000000b0042bf32c33c9mr8061829qtn.54.1707362314301; Wed, 07 Feb 2024 19:18:34 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCVqXjUoHILUgUL2EqHV+BO4jRZYm4kzuyYd2CDKB8KsCqDloYTlv2tZhIfIsfWoNmmSlkxY40914/gaVDfJFFLjUf9scKnqQJVM9QlmQ0n9Y+/w3XhFujR11GOaxkKuFbIprdyZ9RMqwEoENoRkVnyzB1H5YlAe+LkUx+yVv+ZhO9JZWUOmnfuVukMeoMPC5Xsj54QOzV94HZMeUQaY0M8v+X046OLjte6YtbmrnigshxTjueOld39x9MZwt+XzKslzEKUb8ussaFuxX9V6NwgA867s1WnXCQh8oVdBJqatfN3oEPILjFwDmU4FHIxXBAYEomfZ7FheiGqJHjsnNnp17z5Qp7kJaluFgV8Mg/tBpDM4+f7frkHDkbyP+QhTet4LeOlGl8HWKLFrD7xA9v0wjaiw47jAqaaEr3NYLUvqa5+iuGAhrbFeqS49YNaS4++hEFNqWHC49sOW79m0zBDaZudyTSNcMDV3yrPfpdj4uj61R5tH0Bfx0G5/Ra8+HMIN+TnUVl8zq2bMqAm23Nbmv5oHJD5cr5wpEudk/ZTruyJmw3TBY1niRJoePGXMwdjYSQC8+4uibsX7Z63utdQ0xPmKlmJVUa/fnjculRj/pW06eLSeWR9tBHc8Vi5Qpv5d2p6c4rbnRiBa+B87/hh3DwD4LgvxgKP8Qe4E++a3VjihdU5T5ThboW1nI15Wk25Pq+lMnkRuJLgFvOdzSD/HZSwbQVEccbQ4qvr752I939lScaH5dmXr3sKOWyXbMrWY1CYao26Pl4gqzTM8ykRu6XIgcFmPhgHMHv0TBQGPIq4hYmjPAsWShNEP7a8n2MOq9GgZeRDdPEYrzw0L4ppOuAkdfFnH+sjXkQh59cnEJns7fTTkEskHT92z4xIN7s5TwE76xSk3TfLjNkH4HO4abshV+FbYzeWlQ5PTGwkRu6zZojQOkuQLRkSK3+3sUehhlI dzOyAuGVoZWXY= Received: from localhost ([70.22.175.108]) by smtp.gmail.com with ESMTPSA id l20-20020ac81494000000b00429c9bf789fsm1063933qtj.42.2024.02.07.19.18.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Feb 2024 19:18:33 -0800 (PST) Date: Wed, 07 Feb 2024 22:18:33 -0500 Message-ID: <69799b1cfa491838ff4c6d6a046481fd@paul-moore.com> Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit From: Paul Moore To: Roberto Sassu , 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, zohar@linux.ibm.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 Cc: 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 Subject: Re: [PATCH v9 2/25] ima: Align ima_file_mprotect() definition with LSM infrastructure References: <20240115181809.885385-3-roberto.sassu@huaweicloud.com> In-Reply-To: <20240115181809.885385-3-roberto.sassu@huaweicloud.com> On Jan 15, 2024 Roberto Sassu wrote: > > Change ima_file_mprotect() definition, so that it can be registered > as implementation of the file_mprotect hook. > > Signed-off-by: Roberto Sassu > Reviewed-by: Stefan Berger > Reviewed-by: Casey Schaufler > Reviewed-by: Mimi Zohar > --- > include/linux/ima.h | 5 +++-- > security/integrity/ima/ima_main.c | 6 ++++-- > security/security.c | 2 +- > 3 files changed, 8 insertions(+), 5 deletions(-) Acked-by: Paul Moore -- paul-moore.com