From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qv2-f37.google.com (mail-qv2-f37.google.com [74.125.230.165]) (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 A0E4C4CCDE9 for ; Thu, 24 Sep 2026 21:04:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.230.165 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790283881; cv=none; b=WgNUs4jzSZ+brvTRMzJCY+cIbu00d3KjhCRA+UjxeiDTPqKpu74brWaFYRnxXPWTMwokS4IJAqwVVlSAyl1biLcsogezumXYV86L2wdYJ02PFD484UWorDW5zSnhLNNe5qLowaXJSdd3hP4ymjN0ZtjBsThWHFd+11hzQ/FR1IA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790283881; c=relaxed/simple; bh=vXgqYa+Kbk8KpgLNpL8hFAAFCtLOmSW5TJnV7bAjdOg=; h=Date:Message-ID:MIME-Version:Content-Type:From:To:Cc:Subject: References:In-Reply-To; b=Vv5PoP1VHMKHTAxJ1zsr1aCbNEz1ApELeupPBxHEWGV92qZAYmiy+bQxEjNoavDfJ14gErdPOcXWIHqt4jsdlgCpiduSUyDAXdM5DEd+jnmEQXNZZDkAp1WgCCAj9jq77b4619ebqmrKVqMr4MvaTFjeqI4iE2nQzuL/O8Lx0yM= 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=INv8UXiH; arc=none smtp.client-ip=74.125.230.165 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=paul-moore.com header.i=@paul-moore.com header.b="INv8UXiH" Received: by mail-qv2-f37.google.com with SMTP id 6a1803df08f44-91235f46716so2611636d6.1 for ; Thu, 24 Sep 2026 14:04:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paul-moore.com; s=google; t=1790283878; x=1790888678; darn=vger.kernel.org; h=in-reply-to:references:subject:cc:to:from:content-transfer-encoding :content-type:mime-version:message-id:date:from:to:cc:subject:date :message-id:reply-to:content-type; bh=M/fwqzYOs9AMS6dCQQhw2ttehByMwOHbA6DlK+I/gQs=; b=INv8UXiH25ZpB+3iH0cGloR27iHGwhbLnQ4oV3Y3wdYdN+CqUM8/52g9rmLPi5qh9F lW66sKAz8rWJevWtHQkkWM5al+SdC70x//iTfnv9PnnITyqfQiPejtmIdJqZYfJjXmpY BNigqkLPt0r52j6z0H8+l5yi1EmwJjAUGoQvD60zAjSWEHtBx8XVW33t6C7jd3AchFTO qJNz7j6EG00hG31XdjMvyBYILBCW9p+TXugub2x5hypXpzDTwXE8KNyNwX+wujeNW2DK vcaAGJLyH/CEqXUBdHWHCb2dVWzKVCtmDxu3yVPrgdvTgcGA4FtKtjzLU12iQ2eYR17l 6rJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790283878; x=1790888678; h=in-reply-to:references:subject:cc:to:from:content-transfer-encoding :content-type:mime-version:message-id:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=M/fwqzYOs9AMS6dCQQhw2ttehByMwOHbA6DlK+I/gQs=; b=rDewdphwrPOGFFjA+MM8nw4VA7cG0srZ6Bmy5gO0lMVbpUasfUpqP0L60a/q6KsVw0 RCAGaICqvXpslBUAMyTDXz7QnDF8kok5wt1CRFW+pCujGSP9B2Wyx7Y8FfLa21YjM5YS goc66UFjPl0JpUVjOGtyv2tX2q8my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462:b0:912:3162:523e with SMTP id 6a1803df08f44-9142f635c8emr10010666d6.8.1790283877991; Thu, 24 Sep 2026 14:04:37 -0700 (PDT) Received: from localhost (pool-71-126-255-178.bstnma.fios.verizon.net. [71.126.255.178]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-91430dcba2dsm2337036d6.18.2026.09.24.14.04.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Sep 2026 14:04:36 -0700 (PDT) Date: Thu, 24 Sep 2026 17:04:36 -0400 Message-ID: <684d34ea7bf74d3d8308b4bedc714c17@paul-moore.com> Precedence: bulk X-Mailing-List: selinux@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Mailer: pstg-pwork:20260924_1657/pstg-lib:20260924_1656/pstg-pwork:20260924_1657 From: Paul Moore To: =?UTF-8?q?Christian=20G=C3=B6ttsche?= , selinux@vger.kernel.org Cc: Stephen Smalley , Ondrej Mosnacek , =?UTF-8?q?Christian=20G=C3=B6ttsche?= Subject: Re: [PATCH] selinux: constify avc function parameters References: <20260917141317.54719-1-cgoettsche@seltendoof.de> In-Reply-To: <20260917141317.54719-1-cgoettsche@seltendoof.de> On Sep 17, 2026 =?UTF-8?q?Christian=20G=C3=B6ttsche?= wrote: > > Constify read-only decision structs to ease reasoning where decisions > are actually modified, and where only processed. > > Signed-off-by: Christian Göttsche > Acked-by: Stephen Smalley > --- > security/selinux/avc.c | 27 ++++++++++++++------------- > security/selinux/include/avc.h | 4 ++-- > 2 files changed, 16 insertions(+), 15 deletions(-) Merged into selinux/dev with fixes to the line lengths, thanks! -- paul-moore.com