From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ed1-f43.google.com (mail-ed1-f43.google.com [209.85.208.43]) (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 7B65223ABBE for ; Sun, 11 Jan 2026 09:55:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768125331; cv=none; b=khkQWiK6GwHtiaIUSFkQVHD8KZU/rUrES0FGFZu+X5AapsFot8+X0yQWEkUGkJka9y21DmATR4GOS8PypZPzTFO/KXcgU51joN1yLiXf/zdl7ZRoYLtfy67lneShyqnSTppN228QhOhThYqSMKfI44nedIKvVzfmjc0e0NKTj5Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768125331; c=relaxed/simple; bh=4xQ0lnjokZ5wRygVgiXgY6zXC7YvZ8Ydj/VybC0WWqg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=WD28TfOLeOdjCi6Aj/gNT1HIVGDuSCsBs+aaGdcz9fpdZu/XMbA6qOrG+OzKMaHqh0mf5XEV86qkhWjBouNhCO56RUgeoSuLisu5B/0hjfWr1AvNOq5JKlNgPTF5z0Ouw6nt1TtMYA+vtauaohjopPyyOIcFI2Pd6AxRFHSdB18= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=mK/wePWJ; arc=none smtp.client-ip=209.85.208.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="mK/wePWJ" Received: by mail-ed1-f43.google.com with SMTP id 4fb4d7f45d1cf-650854c473fso5203695a12.1 for ; Sun, 11 Jan 2026 01:55:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1768125329; x=1768730129; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=JNNRCHxw8bB1O+m631Xy6zHUnRxJ+RErwtykBDh5nVQ=; b=mK/wePWJbO8PjUITSyr5dTfaAriWBmqJ5gZcwS1kpfP4psQcu6CfJ0Pv1kXJHnZbkm vM3RPgnSxJl9Rd0tUe1jYSAHlILb8hUmBgeEMiyjyUt/hIYnOezSZ9FYKHSEQUShvZ5g cBga6X/yfJdDUZrU29mWtd0KvLt1BOFI/ltYyvJ4zVEys028+SEnVRSlOFS+4HilKFk8 fcdIs8Dp+ugyy4d2feej0/45uuUdk2Xme5sHXuwZh9DuahWBkuRIZxiM4Txcu6tQpNHW 3io2Yv9a2GGXYJckD4bw68VNUu0inbcD+5V01iUsh2+HChHL/G80WyuP8WlamZGKCgob NBow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768125329; x=1768730129; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=JNNRCHxw8bB1O+m631Xy6zHUnRxJ+RErwtykBDh5nVQ=; b=tO0jqrPyiB+UGOVaS7+T+CNlwNmNpF/CnuDxtKt3pRkaWqKuPe5/oTCSSRx4yzmty7 /zdbsKmURwY4SkbW+WO2K3uWojqNd7vb9G5qfIMXw0RGG8W95S7+fMqfGBz3CsLK7c0s XCY5tph1cPuqfNHiqqP1vnSRrXpnMAJfYT19BH9BrKbBTS17YtMuvWSU6SrIJDcV8LV0 1JRBDGQexgUhi7EF5P1Km8PAGnDXzQZw9/U6TMCYs033wHPHgJxqn3MrEkK6CqC/PDi/ NL+UEr8v3lV8X5pfWJg/TK5LORgoqGgUAaeoYAdn/l8r3FOcHg3mDBK/obCCIGRqVFx/ 1/vw== X-Forwarded-Encrypted: i=1; AJvYcCUqIBwk1zZ4kHCxDEcZ9pqg9ZqPKIKq+OXudigJ0P39Nb+Uhl2//uq1dQGcodg7bGZHZRpzEG0aEbDaUy/540H66PgUits=@vger.kernel.org X-Gm-Message-State: AOJu0YxZE69E6psEx8ON1TbtbUtiJK5dac2lROblImYhjTG+4gJIRow4 SEANbIj+/gAGLG0uOpWLLBddogWRmfquAc/7iM+QGvk26zB1D2hA1Knd X-Gm-Gg: AY/fxX71IJNDEO2Q1o4bmeWXkgx34GG11cH+JyORPCqixHbWfWz5ARFYg4jh5dHRAOh 3KOiUPKKy7h0/+Ri1NwxDOV8tZLWruRZX/u9BUd+tA2W1q3aHa0LcB2ltT/V4/QOfLLtTRCe8Mr iryKWq+zuSEM8xP7HHPfSoyQkbqfjAETRBqJminXQU2ubR6vW+HqVkbcHQ0TLNv4SVdQlbyX0dH 8GXExYKP6EEoGilaJh39sbFkXMI048JRzx6SA3jyUGiAh0BpWMQU3JsFlD0TNhwVQHK5yAbQRvn w3+V3RW/UVnO5QeFC2Dcq697s7h7qO91YPvXoxhOLipnqT6U9YFkViD2CClBpYrrogO8vclGrxx lUGJ2S/LJnnKm9270BTZ7WX5NCpsm1IZg1rX5kitVghC5nDd9ESsuYggMPCfTJzWaLK/Y8t0Hno BMA2gK2Og9owW2VjwflITIMQ52SM59uAzVZYXrhkO5biM1fRI= X-Google-Smtp-Source: AGHT+IGM7yd5cjTyha4hJaTtSl4mFUs+hOacf34SkiHiyNc3aYb8M/WwDZo69tUNyYuSNWCv1vjW9g== X-Received: by 2002:a05:6402:1d52:b0:64b:5851:5e7b with SMTP id 4fb4d7f45d1cf-65097c2b44bmr15026819a12.14.1768125328756; Sun, 11 Jan 2026 01:55:28 -0800 (PST) Received: from localhost (ip87-106-108-193.pbiaas.com. [87.106.108.193]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-6507b9d4ed5sm14356431a12.11.2026.01.11.01.55.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Jan 2026 01:55:28 -0800 (PST) Date: Sun, 11 Jan 2026 10:55:27 +0100 From: =?iso-8859-1?Q?G=FCnther?= Noack To: Justin Suess Cc: =?iso-8859-1?Q?Micka=EBl_Sala=FCn?= , Paul Moore , James Morris , "Serge E . Hallyn" , linux-security-module@vger.kernel.org, Tingmao Wang , Samasth Norway Ananda , Matthieu Buffet , Mikhail Ivanov , konstantin.meskhidze@huawei.com, Demi Marie Obenour , Alyssa Ross , Jann Horn , Tahera Fahimi , Simon Horman , netdev@vger.kernel.org, Alexander Viro , Christian Brauner Subject: Re: [PATCH v2 1/5] lsm: Add hook unix_path_connect Message-ID: <20260111.ac6689582f41@gnoack.org> References: <20260110143300.71048-2-gnoack3000@gmail.com> <20260110143300.71048-4-gnoack3000@gmail.com> <4bc22faa-2927-4ef9-b5dc-67a7575177e9@gmail.com> Precedence: bulk X-Mailing-List: linux-security-module@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4bc22faa-2927-4ef9-b5dc-67a7575177e9@gmail.com> On Sat, Jan 10, 2026 at 11:45:03AM -0500, Justin Suess wrote: > Just for awareness, > > I'm considering renaming this hook to unix_socket_path_lookup, since as Günther > pointed out this hook is not just hit on connect, but also on sendmsg. +1 I would be in favor of this. (In doubt, Paul Moore has the last word on LSM hook naming. I believe that both "lookup" and "resolve" are being used exchangeably to refer to path lookups. (e.g. see the path_resolution(7) man page [1])) –Günther [1] https://man7.org/linux/man-pages/man7/path_resolution.7.html