From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f182.google.com (mail-pf1-f182.google.com [209.85.210.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 D457A35E1A5 for ; Thu, 2 Jul 2026 16:50:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass smtp.client-ip=209.85.210.182 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783011032; cv=pass; b=Z4aDxrOcqQZ7A74LWJQCUDI1LxyFO3Aj3fUiMpW7FahvuTgrg9ZL4DzlPt4iOsXN0jDZy4JRDWDKrTW3QtA0so/F1s4sLxn6OCWaxAuohgZE+kh4wkzmwM9nHGWX+0299FLDaI7f4gcVm2Fg24G9CjM5qsgJ0zQ1T/oviBl+ynM= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783011032; c=relaxed/simple; bh=MYmrI09amhjLqSAbahgTEWur6GL/kjiiPuUFpLejiQA=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=s0MSwxLXfsR/nxqOceRuxY6sqRP1eB4ZspyBclbs20EsPqwtXsvTjAj6wPKsmll5wzuk4YcvQTmGPxigOumZhDNDz1K7N6lEaRi2eNwinTSPOFI7o26lcdwD6dtdUcOqRUTyG+AOZKb3HO/UV63WeDfHrBqAJG/sbCUkVxhNHpg= ARC-Authentication-Results:i=2; 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=ZCGlSf70; arc=pass smtp.client-ip=209.85.210.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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=paul-moore.com header.i=@paul-moore.com header.b="ZCGlSf70" Received: by mail-pf1-f182.google.com with SMTP id d2e1a72fcca58-845b6d9bf39so866732b3a.1 for ; Thu, 02 Jul 2026 09:50:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1783011030; cv=none; d=google.com; s=arc-20260327; b=kwm83yGFyXE6XyeSrRA+S+n2LSboyEMVYMe7cODNs7v7kCutyU1m+UqSZZLfm9SoLx VBCSKU8q66DnWvm86THSi5NO5KtK5iieA3ULsB4Pv158zciGm3bCbg8ys1ehx9SkLqwe kBqI1LDcu+4i0Jyoj2SLXGlqjcVAMRmTNQtG/r0ADRDP3Y+MW6XZCN3cS7Yd3CA41l4r 4TD/8Mf4Xx5eDdxv0wEM3pe6dsGkIz6wUZzFgSJaB/h9xVZuOn+UGeSW2xS7+kM2q3MC bwPoFX+6NotGSZwHMutItzCOjqWGsb9y+ocbfgPlJ12VZz5zzPWVCGwAHmC3WQkq3dtT MW+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=MYmrI09amhjLqSAbahgTEWur6GL/kjiiPuUFpLejiQA=; fh=9jbi5swfdYayxyNUymdO5mplJ9huwEBcz/bUpXN9O/Y=; b=NIe+u0rktmdMSXdPuunGh7FVP2XjMPdW/gWpY7SjMOnV38KfeDsgsfbUodcXFZ32Ss jqSpsImpEYjlADFDOT4xXD5+JkJt/vApauCZirzeh67jBv8zi5hjc+g1IWzPrdiTrYSa 4ar0gRUjSQapVpk1Mma/sQBSGW75LfH7pZyb6CHQpD3Tz43S7wE1a690nr7z3grSM2Hj EWTnU9Yd0B3dCSuWrgX1kHGDdZgCV0L+74brLzRTAYuosK/m6++88EYeAbXmpnzug+Xe 2QfTMV3Ce/xJBeTh1kALLHrykTsi4O0T4HLfQAW0dcG+fh2sEramhSAXC7WaqbLVEorw UH+w==; darn=vger.kernel.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paul-moore.com; s=google; t=1783011030; x=1783615830; 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=MYmrI09amhjLqSAbahgTEWur6GL/kjiiPuUFpLejiQA=; b=ZCGlSf70DkuO/WgiLI7FItnXRcJCm75jGa9kUuhvnIfZvledcpXwFBScOWz7QsKgg2 REFmG7oqOEBHOqEEZjmeuQ1+mNVdlRCxd2vcES6akNaspsoaSfcpDgBVcLuHwR1y0njB kilhG/OkcAQRxAS9qzmIEcEm1i3ORwmW4tqxSaWFlu9HxyDDKEldvfw+9y1VncC5vkQ8 LZwxkdft8tEWaInyfzsjS55eNMiCXUW9kVxcMb6215HZczgMnnl3/yDizZcuCiedMDiC fTFx9N8kSgn67m7YIhlFOmqKlvIvVKbxUu+5Y+r6AYcUIbtVeEKr7caDDB1MU+RiNKD4 nWRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783011030; x=1783615830; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=MYmrI09amhjLqSAbahgTEWur6GL/kjiiPuUFpLejiQA=; b=GmmZrFzLCUFBmuELnXR5/Knhk8f/b5boyeF8beqoG69/FYZoWGbQ+y1900viQErItb riPw6JTC0hDGopBVMArPC8dt5t0fiA15lUpMvzS+H+Xe/Ru08Fs4nS2kERhOzMmphu/N BU7PcT/vupc+Dhzvr8PfBQBgJl8DZj9hZNQZMHLLliHx6ioHGsxR7SvupNkPqz3QKaMz pVB7+IHMDCm1Bh16Ic4Em3Fof5bqfuFRqEZE5NL7FH6E5amV/D0kb637GuhYrh15KoPC Q6uNNAzTa6w5nb5qmFfssujVNgawaU8hvsThkAH0JTTFz2RJqR46jhAEBDUaTgobfFV6 N1MA== X-Forwarded-Encrypted: i=1; AHgh+RrIKLRFpGndPLuomI14wpV+fjq/IZOcDmJOiWMFtZj5DCd+QEfR96KH+bFNjp3cKm755XkIyTVhZs6pVCU=@vger.kernel.org X-Gm-Message-State: AOJu0YzMP3r6r+78bZW6Hakn94bfPQGYJpeWhq1VdvoA/WwtJsc+1D9p BIYdmsg8M8y4jB+rtE7ydnsBDjdT+KTY4jnidptTOx7qC5YWmLTsvvzkbL7zLNMTEvxqSO8sP94 pNc6/Cbx8G8RmhmAqySJexrGdWqX5x8Tqko3OoHut X-Gm-Gg: AfdE7cnOIg3bPY5I+fDZjLSWtQaxrdTrrFnkAfmec0CCEZdL4zwAqY5lvZ/A3IlYybs DB8owqbDSwXcUaaKsdfMeOU96V8ybL3T65xKWvqHM8ekdlZRLrAIpvRvZ7vIrZZanNiAdtj1usr 9y7lQxeBuXx03ztyTp/2bgovGgNv4lj77OQrStqhnOD0YVirJwCSS9qghxL+gBEl+5fNOv6mgmQ jaqTdCJRlOEHny+H/vudolSS8nFgeW8jd0JhX8DE/EXHyuuiD8/jNCtgYSxmvT1+p495Uke X-Received: by 2002:a05:6a00:b52:b0:847:84c9:8ff8 with SMTP id d2e1a72fcca58-847e18f8fccmr507308b3a.28.1783011029998; Thu, 02 Jul 2026 09:50:29 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20260119091226.3195309-1-caixinchen1@huawei.com> In-Reply-To: From: Paul Moore Date: Thu, 2 Jul 2026 12:50:18 -0400 X-Gm-Features: AVVi8Ce78ge1QaGCAaHJ8L5bCQ7K5IBd7RNyQ9tApHcRA7928CwqRwIQ4pkgzBo Message-ID: Subject: Re: [PATCH -next] lockdown: Add break in lockdown_write To: Xiu Jianfeng , nicolas.bouchinet@oss.cyber.gouv.fr Cc: Cai Xinchen , jmorris@namei.org, serge@hallyn.com, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Jan 22, 2026 at 12:41=E2=80=AFPM Paul Moore w= rote: > > On Thu, Jan 22, 2026 at 4:31=E2=80=AFAM Xiu Jianfeng wrote: > > On 1/19/2026 5:12 PM, Cai Xinchen wrote: > > > After the label is matched successful, any other levels judgements > > > are meaningless. Therefore, add break to return early > > > > > > Signed-off-by: Cai Xinchen > > > > Looks good to me, thanks. > > > > Acked-by: Xiu Jianfeng > > > > Paul, > > > > Would you mind if this patch went through the LSM tree? :) > > Assuming Nicolas is okay with that, I can take this through the LSM tree. Following up on this as I never saw a response on-list and the patch doesn't appear to be in Linus' tree. --=20 paul-moore.com