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 880C3443A8B for ; Mon, 20 Jul 2026 18:27:20 +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=1784572042; cv=none; b=gdiy35tSluD6aTmvKVdbHY/ybgXXPRPxykSTxReybWKqw6Co3iKI596porntYgZMOvba+NeHJBKTPwiINg7GN3cjUKmktHvXQjOj49WIv9JuMaypWKyJSqVe4w4uEXcBrW5qeEn2W0JGtNwBEQRBS63ooX+ymWGwJlg9ij0O/g0= 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.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="s0xzQg45" Received: by mail-wr2-f1.google.com with SMTP id ffacd0b85a97d-4731c03ab71so3421458f8f.0 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=aRDV/gEzjypEpVGkoVZDqI79k880nmKNwdRJjbRe7ViaiUZHfIT01TQ0sm8iHzX9Xc Ga1/KnGui7E+7lpwJR15MulZ8k6/3LlAEBfYqTjE8bzSSfpv7VpFT13ukWrTCcvr7MF8 43CxYC4bWDrXgmXMJlk32dmV+q+X2Zii6Wv+ecMCxyICK7tPlTm8dvKcHwiff0wngqIo NAsbbJnwZNEg+JpmUPp/RfhwbOrPRqGxUypjuwOEjWze1OQGPCYfWzwA2CkLyasVp0I6 yYemstTEnSfKsnCKuv4bY7NbIodKHqCqro5Lvo69fDoqlE1+s0kwY7mIaHQuGoSB0Acx XG7A== X-Forwarded-Encrypted: i=1; AHgh+Rq5/ctkZ3m69nVHRx0OxUXcLXNGA1OOlKPPstwVZIb5iccsPtb1gP3qayBgyxx53LLkUW9yE7BCI/Ngxnda@vger.kernel.org X-Gm-Message-State: AOJu0YxWgQO+aj85q0L3fMfpxBLrMXymikXE17yAJgB82awbolErkqIT t2BqTOrQDVVGG3YgkR+ETTG8kiaZFllCpYV37SzwmbU+BPyIiGsThF50 X-Gm-Gg: AR+sD120bNzTR0xbvOJBbvm/g0Y/GcaH0t97NtCgemmrOxS8XjSm8YlOpRXeopuWQqE COmQbmb9CFfnVs+owOWTVl4JYuXYHPzkL3q7VvcB/+VqJ5wSHuk6tmt+RtWB1nlf3vgRLkusZqM VpZI1yO718i8m7K/IIylqx7Lytj2RwYqLZ95v3wjU0311Dh0HK8Hf407pWDdu9/eoF5UUOueUoK YxWWZV8vC47Sf+3TOPcSEHBju3LAg8v2H45l39Fc6D7cr52cQ5VNkaL1d9yi4R/zLFP7oXrGARE 550QxqzNa8dV/HNUDKzEN8pbpSECQhJDv9ChUiOwan9L+pkQlTSBE22XO54nQJENrWLgO+OFtcG WO8BimGKAu1WSsxeT7OoIC1G586I37f4terurpXDJToK8eP8bgtHIvHauDTca8W7VFN61SFKvQt px27JUIxGKwPJs2e20ETuyk8nRB68oImL8CzhdTThVN6CJXorgydy8oPFTjGQjY0NsYKB+eTRpY upuGE01RLi3vPGMgGZHwl72YgyXEoRVixPi5gQ4B8F1 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-fsdevel@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.