Received: from mail-yx2-f42.google.com (mail-yx2-f42.google.com [74.125.224.170]) (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 7F2BB397B02 for ; Thu, 24 Sep 2026 16:15:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.224.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790266517; cv=none; b=Xg3Jy243+bBDfx8YBdAHUGexlb4rdjDZCe+4Jf5dFmfpeBs8D/0tEBQ81VN7Qc2+KUfXLfUs4MUPojz6ukcpDRd+luZfEiyl5Q1tol7DHzJTsR172ZeQurHQOhmdS8KaDpJObagEidzSqDuXyh/8Zj14Ujj6otzAkDhhkKeXNPE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790266517; c=relaxed/simple; bh=Skw07uGHtEgXiU/xEUK5orE3/dgl0NDLHVhoeRjk+0c=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=q4njAJXgb2RplvKErqFnWtfS2gmaYmVezKm+zIAvnKUkmgrm6cegj035YHrLW4uTxu69mmVTD2LBWFxBV1/Sey2a4yQbdHDMRC6E4LZJGV9Y0plLiZco4V3TPr+zJKNt5BNfJlKWxL9eVHQ5H+d5+qfTbsvvBAZVJroWA4i910g= 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=H8wDDPjK; arc=none smtp.client-ip=74.125.224.170 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="H8wDDPjK" Received: by mail-yx2-f42.google.com with SMTP id 956f58d0204a3-672c2880f58so74514d50.3 for ; Thu, 24 Sep 2026 09:15:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1790266514; x=1790871314; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :content-type:mime-version:references:message-id:subject:cc:to:from :date:from:to:cc:subject:date:message-id:reply-to:content-type; bh=CPLSKu+wpmxnT92rDqRdMDJHK7EmdoObLiAfE0URKFU=; b=H8wDDPjKW+5BtbrsBAuvhfCmRTctNGUFflpPNTEB9la1Vs8e69/BPJ07xgAMNN7RSi J63ey8U69plPEvR+vqcMxH10QrSb73em8Fog+876Df6rrpwTvjW3n7F9w18s494OOQaB 6FfDhPCNTRFEeHwDo37PPQ48SanRxvHHwBMiUmiQWh31rGdEtqn3FvsRiZrdU/6py/9p CApVKYsOtSmS68r8z92Beiq/QlrSNJ1GZq8I0eZEUGyl0qHhPW04J66eJkxXiwaF7RH5 VwqERZGWa6TcKndFZMo2D7AvDAMwYX8B+xO4ui/EbvStPBBC+LTM3R1IjG6yhwl5ngHF rjQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790266514; x=1790871314; h=in-reply-to:content-transfer-encoding:content-disposition :content-type: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:content-type; bh=CPLSKu+wpmxnT92rDqRdMDJHK7EmdoObLiAfE0URKFU=; b=GJX0dx1DQE9+SCjpmW+kOk2oU2s1+52NenSIMrHhFQyxgQ19g0yjaivxNZElgb2QVa kPEm4Afdkyuj09dKSuqCBffx67anuw1Qu/WwEkqe9VPRrWxNQYj4WhP3hA8jQf8Ofm4l WZnVJSj29Sbd2XFJMvN2ewtNtZ5Z965oIqtzuhZCMxTb2NjFLUq1jYyCVOh/671UVpXa oKkT0HXQ9cxjLbdCifVc4mjKooj2M3OmKu8a1LSTe/4DosCa94Vp9bbNu41ruS46ZMEc ItG9aLPf2HTkLoP/DQ2xrHIvymsquJ7hQveTChlBkfQyFr7bgFTnXUzYnVp0jH3zBwTn tTCg== X-Forwarded-Encrypted: i=1; AKwUvBwGUvZB0ZgtBHGhpXOgMVi9GtKYACmcQyW+MKV7S9LTqcB1HY/dyXz3F2/xN7Im5/RuBXI=@vger.kernel.org X-Gm-Message-State: AFuF++kUBIHZ/wh1cm4pYjr6Lf1x3kwvFG1HyNKsslZlxt4++SSxQxUV vRzf7aj7v3PwLK1f0/ScecZ79H5OI0Hkq9HC1+p2yo2/GjZ5yF81Ft4j X-Gm-Gg: AYBFou1h2zck/JRj7Q+3TOPmQhohAa0Xge4z+InI2CuVkdszS3kcVREauIjBsy0o+41 DPOr6xZPvvmh+siZC4EqirsdsEvEowW5d835HdfQJ9OTsoyFkjH4sgtaqili7UjDnzZijOWuIPv oPSXnfXUB949t+kdD9TVyphR8Gju3Z5KCzj40Wl13JBtXgyl+1p8+bpupilyfXQq5VXbpM/IxA0 68d6Gy5P7tA8OMhjKSPQq8ras1ynPjVle70L+QukBO12EVcgIUTQ/T2S93lXIV31Glvh1fGRXHI VhjrR9itDQR9ExVDaRuGFWzUKAcS7jBsNuWbQ07QHwVdJuk6WA0xSaUzeSNthJfiOjw/eHoKlPB R6MzAbDEkdZhikwiNNRYbdiG5ltZlGxiDRRgcTocDRoMYtmnPWUbv3Mibgx5sxsVBlNWBOQ+azW IoWbaMCD2ZTMuFuJhPqXVeioc/xYZp0oDixQduPtQ4B+SiA/vB4KFHW6cUf3uCcUTW8mEkYYwvn II= X-Received: by 2002:a05:690e:e81:b0:673:697a:d527 with SMTP id 956f58d0204a3-673697aded5mr986003d50.35.1790266514390; Thu, 24 Sep 2026 09:15:14 -0700 (PDT) Received: from suesslenovo ([71.132.185.69]) by smtp.gmail.com with ESMTPSA id 956f58d0204a3-672e0f3be58sm1732948d50.11.2026.09.24.09.15.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Sep 2026 09:15:13 -0700 (PDT) Date: Thu, 24 Sep 2026 12:14:42 -0400 From: Justin Suess To: David Windsor Cc: Paul Moore , Daniel Borkmann , alexei.starovoitov@gmail.com, brauner@kernel.org, john.fastabend@gmail.com, memxor@gmail.com, kpsingh@kernel.org, matt@bobrowski.net, bpf@vger.kernel.org, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH bpf-next 4/8] bpf, lsm: Let BPF LSM provide xattrs at inode creation Message-ID: References: <20260915150739.284189-1-daniel@iogearbox.net> <20260915150739.284189-5-daniel@iogearbox.net> Precedence: bulk X-Mailing-List: bpf@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: On Wed, Sep 23, 2026 at 03:14:28PM -0400, David Windsor wrote: > On Wed, Sep 23, 2026 at 12:57 PM Paul Moore wrote: > > @David, simply for my own understanding, did you ask Daniel to do > > this, or was Daniel operating on his own with this patchset? > > > > Daniel and I work together and both have things written on top of this > kfunc. He reached out to collaborate, I agreed. We're also going to > send bpf_set_file_xattr shortly. > > This implementation was chosen due to its immediate mergeability (it > only touches security/bpf), but was actually suggested by Kumar in v1 > or so of my original series. > > That said, sorry for any confusion about this appearing as a new > series rather than as v7 of my previous one. > Howdy all, Hope you all are doing well and having a good Thursday. These patches are excellent and useful, and have been in the pipeline for a while. In the interest of moving forward: Would you both be able to live with the following: provide a security hook for lsm_get_xattr_slot or another proper interface with the necessary abstraction, and keep the kfunc where it is in fs/? This addresses the primary concern about calling into LSM internals by providing a blessed interface. I'd be happy to detail what I had in mind. I think the end users care extremely little about what directory the source code ends up in. They care about: getting useful features. We all work in the same kernel and it's easier to walk when both legs are going in the same direction. I think that this hill would be an unfitting, uninteresting place for these useful patches to die on :) Let me know if this is something you both could stomach. Sincerely, Justin