Received: from out-178.mta1.migadu.com (mta1.migadu.com [37.59.57.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 03AF1418341 for ; Sat, 8 Aug 2026 12:47:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=37.59.57.117 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786193253; cv=none; b=ALng8IbqGJ+M43D9H2OxdWRBesQb9kUCILDjOlK6DqBpRIYJXfHEKULkAinBtA1qaphrnN68ykpmUVYOPGZ5eG/DQjQULExeL/CmaOrrxkj2RexOc4CtTu2NmyUZ3xzurdraRlDaD9ueRBSRUJCF1znGPYpZoQSkuNissd3M8Jw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786193253; c=relaxed/simple; bh=qb73j1244SUuLMU6IxWAzM/p8hHM4ve7XQUcq+mCTVo=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=YU8A9KAMygWqxfdHiShtxKHW+/FVZGtm1wE1zDW5NBa8CfxKcygAenQTC75nstNfggdJGtxXjBO1M3RjK6QORPU15aHqDQaQ9EoS8EDu9rNiDtaRH0D4nI+mcmcoxGyUb9HogMUeK3AJxAB3mkQl1axm6jWZTXAHx6ok3CrfEF4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=KGEG1ie5; arc=none smtp.client-ip=37.59.57.117 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="KGEG1ie5" Message-ID: <5dcc8d71-11bf-40cd-9cca-e47187954a61@linux.dev> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1786193239; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=qb73j1244SUuLMU6IxWAzM/p8hHM4ve7XQUcq+mCTVo=; b=KGEG1ie53B4HmFbCA8+FqlmMeKfUV7ylFmFf22c7efSKy2nGZ5PNrtuqLdhLhORPjayLgB +DmT0p8c1TR+MJhQWMLQEGB7lSZYeyneYUMww2vWHJ7yVhjv9aZzipDbePkDuCTnvz+4qR 0vsycRrg6YNl0LGUKkKIOfXk7UHhLcs= Date: Sat, 8 Aug 2026 20:46:39 +0800 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [PATCH bpf-next v5 1/5] net: Add connect_socket() helper To: Mahe Tardy , bpf@vger.kernel.org Cc: andrew+netdev@lunn.ch, andrii@kernel.org, ast@kernel.org, daniel@iogearbox.net, davem@davemloft.net, eddyz87@gmail.com, edumazet@google.com, john.fastabend@gmail.com, kuba@kernel.org, liamwisehart@meta.com, martin.lau@linux.dev, pabeni@redhat.com, song@kernel.org, netdev@vger.kernel.org, sdf.kernel@gmail.com, ameryhung@gmail.com, kuniyu@google.com, memxor@gmail.com References: <20260807171532.125149-1-mahe.tardy@gmail.com> <20260807171532.125149-2-mahe.tardy@gmail.com> X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Jiayuan Chen In-Reply-To: <20260807171532.125149-2-mahe.tardy@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT On 8/8/26 1:15 AM, Mahe Tardy wrote: > Add a helper that connects an existing socket while invoking the LSM > hook. Reuse it in __sys_connect_file() to avoid duplicating the connect > logic. Other socket operations have equivalent helpers that trigger the > appropriate LSM hooks that can be reused, this one was the only one > missing. > > Acked-by: Song Liu > Signed-off-by: Mahe Tardy Reviewed-by: Jiayuan Chen