From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr2-f1.google.com (mail-wr2-f1.google.com [74.125.225.65]) (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 CFD4E199EAD for ; Fri, 31 Jul 2026 22:45:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.225.65 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785537946; cv=none; b=fl2EDPZSQQr5shD2KlUM1AFa5loZSA6mWVFmrDljaU7VYlAFLubkhIycyvqa2gCHErZGC8fPHSNNtSS/EDhTXOJSTRmUvPVWHa/0ld+Ex1EXAadkuetLQvOTKYoLQZe0EmJTjqc4K7JqXygkR1/kUb66xV2mtyIuR1MmeLH/RIs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785537946; c=relaxed/simple; bh=h9Gx7FOJiO/f1k+SYvvOKCIIgfTzPzAEPJejmeM+Bak=; h=Mime-Version:Content-Type:Date:Message-Id:Cc:Subject:From:To: References:In-Reply-To; b=NCCB8CVbMsN8UQt6wxuc7BOQUhju0a+ToOO4eM35zWBx/bE729Wnoh1199XpwjOZGDy8VcRkxQ9ug5g5aOsmBzIiQqxlD/lbnt2MPfquxBTFw2EnzyJGBKzfHvVmlwruf+GC6d+nF+QVa1OPthndECY0XQH6uffr6kp/yHtRQe4= 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=HwVZy1Rd; arc=none smtp.client-ip=74.125.225.65 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="HwVZy1Rd" Received: by mail-wr2-f1.google.com with SMTP id ffacd0b85a97d-47fcb9d4b33so766090f8f.0 for ; Fri, 31 Jul 2026 15:45:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1785537943; x=1786142743; darn=vger.kernel.org; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-type:content-transfer-encoding:mime-version:from:to:cc :subject:date:message-id:reply-to:content-type; bh=h9Gx7FOJiO/f1k+SYvvOKCIIgfTzPzAEPJejmeM+Bak=; b=HwVZy1RdJAnPTZ4wL8DdU9cd9TqQnEw4TRzVxac6peYQ+PDIfuaqbrprr7fw/h1y8F A/iGHY0kxK2K/h5cy3E2R1dq8IA3iPQow8q9TA3oq8bUgHasqKvVx511hR7jThcMsz0j qax51nlIO3U7YMYd0ZYABaUcZzu3Ew4fg8pC8y4v4KRdqW6lk4BU4VjDwrUW8CoZCqAb Zy06DH/HlWQ6mKKEuUyQEg1vSjDePy9/BhXvobQ+7TKgC1+UT/PPn1c8sCHiyCh6xYAU BAFjCyIP0IFglq3x1j3SY3zt7YJ4zuAQsFySCCXZV5DL+N6UhzP/fbZXPlQujoOrf5He WpZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785537943; x=1786142743; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-type:content-transfer-encoding:mime-version:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=h9Gx7FOJiO/f1k+SYvvOKCIIgfTzPzAEPJejmeM+Bak=; b=ZY+l7MyNugpbEKaRk6J6ZSSD2cT5amUx/2V8MULmLhZ/SPg399eqfWEz62kvAM24Qg /pNW4z40Ds+tf5NLO1FTb4eqNsJdXyOheCQPL2z76911B710QpBNd+QAcJm6xkP90r8s gdZDMBv2ghrdvz/qgZfYr24ePq4fJJvP6Qu+nItGqpxr5bO4t+uyIjpPnQVcksdR+S6r jg4sZlpsNHwkYKd2KLxDSwQbjhdB1JgGPA0ob+P3Q1XF/RrZ58X0TBhfeTu98VWYfwDg qEgqrhgGtAuZjh1fT6aY3vaPA4H0siRX0HW38TmVeDoIZ1Tgabn1+fUjuCbbz2IElwFW 45/g== X-Forwarded-Encrypted: i=1; AHgh+RrJoaOAEHji4e0pINVIy/lfFPrLI7SR6ovDsTISIqCbp6BytfQJ9kUund3or2O9Lqg8jbT0rL8SABbZDoD+cnNWP06MQdw=@vger.kernel.org X-Gm-Message-State: AOJu0YyzDeqJZ/iFOuzAtqa1NvxDYhuBHgqjkKv2bYfMKCk++j114T/D Ji9UVB1YVBWVQdcbfAG+ntv9793KQBBhQKpP/MGODsGMip9bUwS0sWtS X-Gm-Gg: AR+sD11DSnSfXnzBc//gNF0xG/yODgaxXS9Uds/e8gS9zthTjGEClw6hihNuvTDofR0 EgrWhPA0OpIil6peA85qBiEKdTXlDEq/dTEsXbio3oYeeL3A9t7M9SOLFWlvoX762PxcAqfItSk 73lsHmfaqZ0KZXvXn79XwfeqOZeKr3Nk4bFj884JoyLZcLeQMcYYuoIuq8TLb/7mTRfyQTG7sFm DGc33SeS8WGPy0AERk0gPFqblnBifOxRQYCgFGBwC88issks/LFVNsQkTCwcTm2F6j7q1n6zW65 QqewpLYxkOYNTI+oWzi/HuSDHarg1COp9gc+DZu4qyRfhhx49XKDJhz6Z4UoLH9sjrdOEbF6k3x b9KMbOCrXHMOHtLEC0YtUQRn47xRYs+V8UBUioEoSiYH3g7yvhMPt8BR/U8HXPAZP4eaQXD0XwB 3bCB8SwWZRPieFBzFY0al8IoL5nkp77Y3guR9o29BwrgQwuNRRrOUom6PPt4f92fZTob3/1TQm3 HJk7CiELPVGtJJ1USYIvktp7JJ5jsfBAFuumC2noqQxExj8FH3dn5bFI1CaabDGXZqLmi9pInT+ B+wRPGEWv4yy3vUK4eayvVeKFh0= X-Received: by 2002:a05:6000:186f:b0:47f:93fc:2d32 with SMTP id ffacd0b85a97d-47fd7317951mr2820819f8f.40.1785537943005; Fri, 31 Jul 2026 15:45:43 -0700 (PDT) Received: from localhost (nat-icclus-192-26-29-3.epfl.ch. [192.26.29.3]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-47fd45a0ae0sm10773482f8f.33.2026.07.31.15.45.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 Jul 2026 15:45:42 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-security-module@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Sat, 01 Aug 2026 00:45:42 +0200 Message-Id: Cc: "David Windsor" , "Alexei Starovoitov" , "Daniel Borkmann" , "Andrii Nakryiko" , "Martin KaFai Lau" , "Eduard Zingerman" , "Song Liu" , "Yonghong Song" , "John Fastabend" , "KP Singh" , "Jiri Olsa" , "Emil Tsalapatis" , "James Morris" , "Serge E . Hallyn" , "Stephen Smalley" , "Ondrej Mosnacek" , "Mimi Zohar" , "Roberto Sassu" , "Dmitry Kasatkin" , "Eric Snowberg" , "Alexander Viro" , "Christian Brauner" , "Jan Kara" , "Shuah Khan" , , , , , , , Subject: Re: [PATCH v6 bpf-next 3/4] bpf: add bpf_init_inode_xattr kfunc for atomic inode labeling From: "Kumar Kartikeya Dwivedi" To: "Casey Schaufler" , "Paul Moore" X-Mailer: aerc 0.21.0 References: <20260730234533.1912709-1-dwindsor@gmail.com> <45d2738f-de04-43cb-b37f-4370e6232678@schaufler-ca.com> In-Reply-To: <45d2738f-de04-43cb-b37f-4370e6232678@schaufler-ca.com> On Sat Aug 1, 2026 at 12:27 AM CEST, Casey Schaufler wrote: > On 7/31/2026 3:04 PM, Kumar Kartikeya Dwivedi wrote: >> On Fri Jul 31, 2026 at 11:49 PM CEST, Paul Moore wrote: >>> On Fri, Jul 31, 2026 at 5:29=E2=80=AFPM Kumar Kartikeya Dwivedi >>> wrote: >>>> On Fri Jul 31, 2026 at 10:48 PM CEST, Paul Moore wrote: >>>>> On Fri, Jul 31, 2026 at 4:16=E2=80=AFPM Kumar Kartikeya Dwivedi >>>>> wrote: >>>>>> On Fri Jul 31, 2026 at 10:01 PM CEST, Paul Moore wrote: >>>>>>> On Fri, Jul 31, 2026 at 3:20=E2=80=AFPM Kumar Kartikeya Dwivedi >>>>>>> wrote: >>>>>>>> On Fri Jul 31, 2026 at 9:05 PM CEST, Paul Moore wrote: >>>>>>>>> On Fri, Jul 31, 2026 at 2:50=E2=80=AFPM Kumar Kartikeya Dwivedi >>>>>>>>> wrote: >>>>>>>>>> On Fri Jul 31, 2026 at 8:42 PM CEST, Paul Moore wrote: >>>>>>>>>>> On Fri, Jul 31, 2026 at 2:18=E2=80=AFPM Kumar Kartikeya Dwivedi >>>>>>>>>>> wrote: >>>>>>>>>>>> On Fri Jul 31, 2026 at 6:59 PM CEST, Paul Moore wrote: >>>>>>>>>>>>> On Fri, Jul 31, 2026 at 12:32=E2=80=AFPM Kumar Kartikeya Dwiv= edi >>>>>>>>>>>>> wrote: >>>>>>>>>>>>>> On Fri Jul 31, 2026 at 6:02 PM CEST, Paul Moore wrote: >>>>>>>>>>>>>>> On Fri, Jul 31, 2026 at 11:44=E2=80=AFAM Kumar Kartikeya Dw= ivedi >>>>>>>>>>>>>>> wrote: >>>>>>>>>>>>>>>> On Fri Jul 31, 2026 at 5:30 PM CEST, David Windsor wrote: >>>>>>>>>>>>>>>>> On Fri, Jul 31, 2026 at 11:17=E2=80=AFAM Paul Moore wrote: >>> ... >>> >>>> I think you keep forgetting that you cannot unilaterally decide this. = Both VFS >>>> and BPF people have told you that it does not make sense. What was cle= arly LSM >>>> specific code has been moved under security/ already. >>> I'm charged with doing the Right Thing for the LSM framework, and in >>> my opinion it is in the best interest of the LSM framework that the >>> kfunc being proposed lives in security/bpf_lsm_kfuncs.c, just as the >>> VFS kfuncs live in fs/bpf_fs_kfuncs.c. >>> >> I think the "Right Thing" would be caring about your users and the proje= ct >> moving forward, who want this functionality, and figuring out the best w= ay to >> make it happen while working collaboratively with others. Life is full o= f >> tradeoffs. > > It certainly is. Paul has taken a stance that supports the ongoing mainte= nance > of the LSM subsystem. It does not have a stable API in support of the rap= id > development of Linux kernel features *outside of* the LSM infrastructure.= That is, > people like you. If LSM hook implementations were spread throughout the k= ernel > code it would be much more difficult for poor hobbyist LSM developers lik= e me > to track them down when making changes. Changes like the ones you require= . I would recommend reading the patches before commenting. All LSM code is un= der security/ (patch 2), as it should be. > This is about being able to continue supporting the latest and greatest a= dditions > to the system. Like yours, io_uring and the network protocol d'jour. > I don't know what you're on about. > Please don't lecture us on collaboration and trade-offs. We live and brea= th that. > Paul is free to take a stance for LSM code, just like the BPF maintainers g= et to decide on where BPF related code should live. I'm sure you know that. Thus, please avoid justifying his overreach on where others maintainers sho= uld keep their code.