From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from ewsoutbound.kpnmail.nl (ewsoutbound.kpnmail.nl [195.121.94.183]) (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 899DF3E317A for ; Mon, 4 May 2026 17:43:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.121.94.183 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777916619; cv=none; b=N9U62+M9pIrAz/SMmy6LN1f309vW0Ds+rwSGAPJ8VSe6av21moYGXrcC/L11Ptodi1q0pY3W+dZTWugFV8kG7umxpkPtGXke0GgTf6bCkCpcxPa9Xy0+KeNFRfQjyjQ1+mVDFZV0M7U8CYMo/Ng8mnLoBtn93Cn3rf6cRe+cVhU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777916619; c=relaxed/simple; bh=UmnAEidipRT5i3DpB57vlHvWvY7ZbghL8NryuFr/o2E=; h=Date:From:To:Cc:Message-ID:In-Reply-To:References:Subject: MIME-Version:Content-Type; b=W51yPz2apBxNR7Z4uXCnGy1nLIXCEBzZizVTwdcTGVz4Cjt3yHoaP8PZtVKvvJ/9cA7b+2IgzWXFIKZo90pPkxQiRIF4spCryQGj2OxngC/Blhh5AJjIwp8mWrveAFyHlRUaVB39aSpnZ5kgP5PQi1LV4r4wQdIZTCJ3tXHcuZ0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=xs4all.nl; spf=pass smtp.mailfrom=xs4all.nl; dkim=pass (2048-bit key) header.d=xs4all.nl header.i=@xs4all.nl header.b=X9uVeR9j; arc=none smtp.client-ip=195.121.94.183 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=xs4all.nl Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=xs4all.nl Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=xs4all.nl header.i=@xs4all.nl header.b="X9uVeR9j" X-KPN-MessageId: c3abf1da-47e0-11f1-bea8-005056992ed3 Received: from mta.kpnmail.nl (unknown [10.31.161.188]) by ewsoutbound.so.kpn.org (Halon) with ESMTPS id c3abf1da-47e0-11f1-bea8-005056992ed3; Mon, 04 May 2026 19:43:30 +0200 (CEST) Received: from mtaoutbound.kpnmail.nl (unknown [10.128.135.189]) by mta.kpnmail.nl (Halon) with ESMTP id c3b04f5b-47e0-11f1-80fc-00505699693e; Mon, 04 May 2026 19:43:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xs4all.nl; s=xs4all01; h=content-type:mime-version:subject:message-id:to:from:date; bh=kdpYfIX+URTvw/wf5koeiRsTKprTy2NaYWQX03NB+IU=; b=X9uVeR9j1Iz9IcchmfYfcB2+oARQT9t00sirJbn8eZN5SB+W/czEx2L9vOWtBlE8YYIw1a9/uf0QL JtbgDvpP0p7Bn/X00H82OIfktOat2f8Mui7MMc74KIrTzVkqjdOaWRu+BxVGultMEfJeQTMm1o1Nb/ wXLCaW1fqbs5QxhPTQd8CNfbnfC3LDUvFajwKv3AxyvSAoQeJ3TjvNA2+6jc5r1adRgt0Wqt4KXbBW eSmyroMauz3V3v89IiN8uQCMNOGlng/LskwtHpT4/WxmRQhQEFQOihrl+k1RpmdagSJAKn2HVWWAB0 iPtn6T0mXfDGEfuhS0K/CA9XfW+PVAg== X-KPN-MID: 33|Oe96tHjdqLcXG0+4p3g9qL+qjYCkVqfDCbZeSJ15n5e+210MBUIX8rTzjMrdbVD FRArJlNNiY+UlB9IHfFx7dOSKHBq8DIgfF2pCihJ73ow= X-CMASSUN: 33|sm6o1OA6K6UEpMWW6cTWJ0kgfRL2hfIYXSaPNctPG5j1Bd6gVKJ0hWLwCZMWN+I Bk/mQSOTh0WfSmVVk1hIwew== X-KPN-VerifiedSender: Yes Received: from cpxoxapps-mh02 (cpxoxapps-mh02.personalcloud.so.kpn.org [10.128.135.208]) by mtaoutbound.kpnmail.nl (Halon) with ESMTPSA id c39bf502-47e0-11f1-94b1-00505699eff2; Mon, 04 May 2026 19:43:30 +0200 (CEST) Date: Mon, 4 May 2026 19:43:30 +0200 (CEST) From: Jori Koolstra To: Kuniyuki Iwashima Cc: Alexander Viro , Christian Brauner , Jan Kara , Eric Dumazet , Paolo Abeni , Willem de Bruijn , "David S . Miller" , Jakub Kicinski , Jens Axboe , Kees Cook , Simon Horman , Andy Lutomirski , Will Drewry , Jeff Layton , Oleg Nesterov , Andrei Vagin , Pavel Tikhomirov , Mateusz Guzik , Joel Granados , Charlie Mirabile , Aleksa Sarai , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, io-uring@vger.kernel.org Message-ID: <1440036704.77422.1777916610532@kpc.webmail.kpnmail.nl> In-Reply-To: References: <20260428175125.2705296-1-jkoolstra@xs4all.nl> <20260428175125.2705296-2-jkoolstra@xs4all.nl> <89346381.2074764.1777649680664@kpc.webmail.kpnmail.nl> Subject: Re: [RFC PATCH 1/2] net: af_unix: Useful handling of LSM denials on SCM_RIGHTS Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Priority: 3 Importance: Normal > Op 02-05-2026 03:24 CEST schreef Kuniyuki Iwashima : > > > > > > > Does this flag need per-recvmsg() granularity ? > > > > > > > Perhaps not. What would be the alternative? A fcntl option for the socket fd? > > I'd add a new socket option like > > setsockopt(SOL_SOCKET, SO_RIGHTS_TRUNC, &(int){0}, sizeof(int)); > > I think this is reasonable suggestion (and better than using the MSG_ flags). Let's just let this sit for a few days to see if anyone else has suggestions/ objections.