From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr2-f0.google.com (mail-wr2-f0.google.com [74.125.225.64]) (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 7B42643E9F4 for ; Mon, 20 Jul 2026 18:27:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.225.64 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784572042; cv=none; b=DkFOIXCZyfubZHIN2t38UVMYTTXkbxebesNwhzAgMtsb9XpIuYEaGv62tM5V1wRZlHZeQWT1A/QnUj5cFbFoq/iF7Yvgh4HxGT5XK3jlJ8jsXmwS+kxf5ZdkEZj13K/452isoH+DNJ974JW/YslmGSfSXgGDjTks8D9tu/wGN5g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784572042; c=relaxed/simple; bh=HaKBPDdvqD3jL+crpoeSpqk4rCYr9G1sp8Bvlz+sMGM=; h=Mime-Version:Content-Type:Date:Message-Id:Cc:Subject:From:To: References:In-Reply-To; b=QWJOOlp7dNeMjJ0/D8gJuXKLOhYnX+poDHPdDGEkt2dt8B2lejKeCCs7bBKSNJ4M2NAMDVHKP3k47YAgu5pOLUXk39ssw4bIUYVl1uzYrtQ1J77gmERuofTLW5SrWnwBqqP38NbsWNcspg56IienXenljS0yZShOYua422eFFZE= 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=s0xzQg45; arc=none smtp.client-ip=74.125.225.64 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="s0xzQg45" Received: by mail-wr2-f0.google.com with SMTP id ffacd0b85a97d-46cbf263216so3709656f8f.1 for ; Mon, 20 Jul 2026 11:27:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1784572039; x=1785176839; 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=4BSD6EaevsT9Fl/VQOSMyXi/kGr0zB0+ZQdJSCGrj20=; b=s0xzQg45ODMjIkrBxaOW/KlxKiRtUAz2Bi8N3AspgUHh9RvnAN0zeXcz3yZ9VikHTI eAxZ3lafL10cuAoICpdOm0p0TbshlDVBxfCkdnoi4Xw6K8r2diMtvsZ0EW58qfZBcU66 pgeR+MPFIBT3nQI4QADwxyYU7TDAhpwLYV9GRHyQ9UlgRgr6np4QNy64LpxnLmaQulQL 6NIvWJvGYr2/Nllw1SJVB1u3kh5AH5cFtMTWGDHdtq0zrU4GdeGD+/yIuKIenCz7KCDo SUZaLmOvV09kA+v4dJw1pugxwWwm2YjE3x7FX2Wm0Rx/0wu/Fl85s/BjVIwVb0DcTVTU AyKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784572039; x=1785176839; 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=4BSD6EaevsT9Fl/VQOSMyXi/kGr0zB0+ZQdJSCGrj20=; b=UAryiVIXVuDhDcpbBj2yrxp7x7eCu72gx9NOMOGxmshVRy7MRa8eR32QiOx8SP0sii IEHwU3W48zdEzjN9fkTmUFkvWQ9hEDfpj6rCWXkk3FOQZZmNvTLV582V4X+zfT6PBXLs C5xHewaFN6B6KO5GODGh3R1PhbYwlZvnXOlJD5Ie5381QYvPsNl2gjzuUmoUu9aLzH5e Tt57G+iuWVtno8AvoU42oqJowSq+Q+ZWxdqNkePA2FqJqqEImf3RkyOr+9WQ1w0IIUok 6x571y/mxAr0u6QUjmASciKV6hDDeF/yEw6dUOLoyUMA5JAkwzvi2wDxLRfjRjteh/au EMIA== X-Forwarded-Encrypted: i=1; AHgh+RqTubltfiDaSGX5yemtidfUgvKteE6c8yxjhZegOo9ERScFaGUB27liYYKIGbHScDyaKJsnwcl5Z8bJca4TCIg=@vger.kernel.org X-Gm-Message-State: AOJu0Ywypvknr3aTQtqIKG6XTu+uSkTQC/DxELcoEvbhtYfZK6hhu1wK 81SabZs2om7P5Kt0RbEWBXMej94BanoWaKLH20tDhEDmZWv1RxQ+uKVi X-Gm-Gg: AR+sD11mLcocAkIAGnOv44LSKC9yT4KXtcubJk85SB8ihtbuNabjFksK8PHLHNNsOTL 07kKQMEBhMi1mjgG1UCBlR82j54OwN4X5K6bTDgkhNgDtzpAc6bOuApcXgjmUe9bDx/hEZR1iBe 6/oQqm3OT2r1yEERfONILBBmgGfDqWx/mPp/NToFoDenQUbi1IQOowp1dkQFY0QXboUNqgyBpHg FY70Ga9SDzNU+M2jtcWQPXRVgwiWuPM8mN5KZQbeAJ8M+Yy5ZJD67fhQwl+4nD1XeuyxG98rxB2 HgVPtyEXphvtc831LB1E8BPQIgv6QJqv9/xWfUwMUND4nXNGQ7eHeo7EFWyYOezlObIVSREjBkF 40tcoghpsDCbKplhu4QS6MucIt5oYgJJfuHrRVicHFMzZabInoOR8ucnn+8CkEHUqAUyKnODrAx SZ0kJ7SpSNl7DdSqzIFLejwPPX3zMeOZdu94Nr1r6pQoB0ScQc4Gpr/NrXDz7HCj8ygbOiXaYFD zkR86kw1EV+MNxDt5YO+pOK0tOcg7GpEXEkAKJ19kuR X-Received: by 2002:adf:e195:0:b0:475:a4ae:e630 with SMTP id ffacd0b85a97d-47f623364bfmr18309880f8f.37.1784572038601; Mon, 20 Jul 2026 11:27:18 -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-47f63e65644sm30464561f8f.16.2026.07.20.11.27.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Jul 2026 11:27:18 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-integrity@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: Mon, 20 Jul 2026 20:27:17 +0200 Message-Id: Cc: "Alexei Starovoitov" , "Daniel Borkmann" , "Andrii Nakryiko" , "Martin KaFai Lau" , "Eduard Zingerman" , "Song Liu" , "Yonghong Song" , "John Fastabend" , "KP Singh" , "Jiri Olsa" , "Kumar Kartikeya Dwivedi" , "Emil Tsalapatis" , "Matt Bobrowski" , "James Morris" , "Serge E . Hallyn" , "Casey Schaufler" , "Stephen Smalley" , "Ondrej Mosnacek" , "Mimi Zohar" , "Roberto Sassu" , "Dmitry Kasatkin" , "Eric Snowberg" , "Alexander Viro" , "Christian Brauner" , "Jan Kara" , "Shuah Khan" , , , , , , , Subject: Re: [PATCH v5 2/3] bpf: add bpf_init_inode_xattr kfunc for atomic inode labeling From: "Kumar Kartikeya Dwivedi" To: "David Windsor" , "Paul Moore" X-Mailer: aerc 0.21.0 References: <20260708000956.46138-3-dwindsor@gmail.com> In-Reply-To: On Mon Jul 20, 2026 at 8:12 PM CEST, David Windsor wrote: > On Thu, Jul 16, 2026 at 5:55=E2=80=AFPM Paul Moore = wrote: >> >> >> I'm sorry David, now that I'm seeing this function again, especially >> with the LSM specific bits extracted into a LSM function, this absolutel= y >> belongs somewhere under security/. It's only callable from within a >> BPF LSM callback and all it does outside of some BPF pointer boilerplate >> is call right back into a LSM helper function. >> >> If the BPF maintainers aren't willing to accept that, then we will all >> need to find another way. >> > > Where this code lands doesn't matter to me, so I'll stay out of the > decision of where it lives. > > If this kfunc goes to security/, would we also want to move eg > bpf_set_dentry_xattr similarly? > > I'll roll v6 of this series meanwhile and we'll see what the BPF > maintainers say. I don't think there was any preference expressed from the BPF side. Logical= ly, one cannot be faulted for adding a kfunc to set the xattr for inode in the = same file where similar kfuncs to set xattr on other FS objects / entities exist= . The question about bpf_set_dentry_xattr is thus valid. Anyway, I will leave it to Paul and Christian to decide between themselves = where it makes most sense for this one to live.