From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=178.63.66.53 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796232891; b=360c3WOi8DtPN3nfscxJIj5woVL6RDyzj/dfF6hiPJochikrycm+envWMcNuZArIJgx3 wJeC7P0gvKTi1vQGXuDfwLcPHZl8KwK4+iechvBneXvpZKvnFf9ICDcwLIwsihgt4Ix7T nJi4pvNwD8AGCd+aOaBDs8RwniFncm9spg6cslAARNscV3gi92TeyEa8SgN5zMY64qR/V vEApg/mGqgs/5BJKt89YWLTxIzDbIbix2X+V+/NAo87EvjnJ0RNNMHAJz8va/HhZhT4us Vc6QeTm20dxHbHiX1INodt3Bkdh3SZpor5/0xnU5FYHoLhQdbIScukYQSaA7Ppf5S/A== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796232891; h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject: Message-ID:References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To; bh=te8fnxMCp+a291qKFYchbY1coXeCx5Z9x9gz+Sw3bEA=; b=LIlfTL+CDY4RGfzNo7hdQJ1iN9Cb0u8idT0DSZH1acP4nvsHua2SyK5d2x5vPxBjF76g 8lsjJignP7FPM4qvgd5ibsAWunGrk3dZ4kSFmfb8At8hXCI+jEmiSOG0onsFPh+I/RU+c 90S+3apH1ybBgM2EVruGZbNpcjtWKg2+T9WXUnt3bukiHGOx12DmsSrtHiYuYB7yx0QIs ekSLySVD8Ad3BbGhoCqxXUtcf1U8Y/5wG/be//uXQJQmCd8bu9bIHiSZGEyYffAy+XNj4 Nd3liLSRK+fGlyyvIF9ltxDtf2VPixIGMg/fKAkP4PF/wRGWkymkPYdaSaEuxrayvlQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=hallyn.com; spf=(null) smtp.mailfrom=hallyn.com; dkim=pass header.d=hallyn.com header.i=@hallyn.com header.a=rsa-sha256 header.s=mail header.b=0W5lyRr3; arc=none smtp.remote-ip=178.63.66.53 Received: from mail.hallyn.com (mail.hallyn.com [178.63.66.53]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A29E9606A6A3 for ; Wed, 2 Dec 2026 17:34:49 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org A29E9606A6A3 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=hallyn.com Authentication-Results: smtp.subspace.kernel.org; spf=tempfail smtp.mailfrom=hallyn.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=hallyn.com header.i=@hallyn.com header.a=rsa-sha256 header.s=mail header.b=0W5lyRr3 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=hallyn.com; s=mail; t=1796232887; bh=BRrBTniozxY3tql7NZEk3tPmyf+wxTevMKF54jUIIp0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=0W5lyRr372zn2zZXeMouZ9G1GHLB0KrWiLQujpfHWLqFst6OyFqz+djs4X7AwozZ0 t26bt79nrTVmaytHNzwDw4OwDXu/ah3iUHve/islyPHv3DtXCwMfSNJGRg/CP7NnOG g+4HbXJxmdB5A1aixUs+LdXTDwi+dR3xrOYQYTogl4bVJTd7XcLB25BTVxQyjQXGko f9iNCSqFzfj77uLBTVSHdRsBa4YlsM8zuKuaTIMb/VWJVyBZtmyV50P7J9h9gq6qkz sqgPDmX7cEqXMVitoTInadO5lTvH9nLYszILdX4nrkfbcqvi+dSy0E9516/gQ/JfHk UspiS7TmCaH4g== Received: by mail.hallyn.com (Postfix, from userid 1001) id 7C86C5BC; Wed, 2 Dec 2026 11:34:47 -0600 (CST) Date: Wed, 2 Dec 2026 11:34:47 -0600 From: "Serge E. Hallyn" To: Guicai Ma Cc: Alejandro Colomar , Paul Moore , James Morris , John Johansen , Georgia Garcia , apparmor@lists.ubuntu.com, linux-security-module@vger.kernel.org Subject: Re: [PATCH] security: Add missing const Message-ID: References: <41df4fcaea9d5eb41d07ffb4119621fb2f233b79.1795630921.git.alx@kernel.org> <20261126033112.2007696-1-maguicai@kylinos.cn> X-Mailing-List: linux-security-module@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261126033112.2007696-1-maguicai@kylinos.cn> On Wed, Nov 25, 2026 at 10:31:12PM -0500, Guicai Ma wrote: > The change is correct: after this point split is only read, through > pointer subtraction against *ns_name, split++, the strncmp() against > "//", and skipn_spaces(), which already takes a const char *. strnchr() > returns a pointer derived from the const fqname, so the qualifier is > safe and behaviour is unchanged. > > Built security/apparmor/lib.o with the patch applied (arm64, W=1): no > warnings. > > One note on recipients: get_maintainer.pl also lists John Johansen, > Georgia Garcia and apparmor@lists.ubuntu.com for this file, so I have Yup, John and Georgia would be the primary maintainers, in fact. Thanks. > added them here. The posting only reached the LSM side. > > Reviewed-by: Guicai Ma lgtm too, Reviewed-by: Serge Hallyn > > Thanks, > Guicai Ma thanks, -serge