[PATCH -next] lockdown: Add break in lockdown_write

Xiu Jianfeng xiujianfeng at huawei.com
Thu Jan 22 09:31:05 UTC 2026


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 <caixinchen1 at huawei.com>

Looks good to me, thanks.

Acked-by: Xiu Jianfeng <xiujianfeng at huawei.com>

Paul,

Would you mind if this patch went through the LSM tree? :)

Best regards
Xiu Jianfeng



More information about the Linux-security-module-archive mailing list