BPF List
 help / color / mirror / Atom feed
From: Eric Biggers <ebiggers@kernel.org>
To: Song Liu <song@kernel.org>
Cc: bpf@vger.kernel.org, fsverity@lists.linux.dev, ast@kernel.org,
	daniel@iogearbox.net, andrii@kernel.org, martin.lau@kernel.org,
	kernel-team@meta.com, tytso@mit.edu,
	roberto.sassu@huaweicloud.com
Subject: Re: [PATCH v6 bpf-next 5/9] bpf, fsverity: Add kfunc bpf_get_fsverity_digest
Date: Wed, 1 Nov 2023 20:11:04 -0700	[thread overview]
Message-ID: <20231102031104.GB1498@sol.localdomain> (raw)
In-Reply-To: <20231024235551.2769174-6-song@kernel.org>

On Tue, Oct 24, 2023 at 04:55:47PM -0700, Song Liu wrote:
> fsverity provides fast and reliable hash of files, namely fsverity_digest.
> The digest can be used by security solutions to verify file contents.
> 
> Add new kfunc bpf_get_fsverity_digest() so that we can access fsverity from
> BPF LSM programs. This kfunc is added to fs/verity/measure.c because some
> data structure used in the function is private to fsverity
> (fs/verity/fsverity_private.h).
> 
> To avoid recursion, bpf_get_fsverity_digest is only allowed in BPF LSM
> programs.
> 
> Signed-off-by: Song Liu <song@kernel.org>

Acked-by: Eric Biggers <ebiggers@google.com>

- Eric

  reply	other threads:[~2023-11-02  3:11 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-24 23:55 [PATCH v6 bpf-next 0/9] bpf: File verification with LSM and fsverity Song Liu
2023-10-24 23:55 ` [PATCH v6 bpf-next 1/9] bpf: Expose bpf_dynptr_slice* kfuncs for in kernel use Song Liu
2023-11-02 16:56   ` Andrii Nakryiko
2023-11-02 17:09     ` Andrii Nakryiko
2023-11-02 17:16       ` Andrii Nakryiko
2023-11-02 18:09         ` Song Liu
2023-11-02 18:12           ` Andrii Nakryiko
2023-11-02 18:16           ` Song Liu
2023-11-02 19:06             ` Andrii Nakryiko
2023-10-24 23:55 ` [PATCH v6 bpf-next 2/9] bpf: Factor out helper check_reg_const_str() Song Liu
2023-11-02 16:58   ` Andrii Nakryiko
2023-10-24 23:55 ` [PATCH v6 bpf-next 3/9] bpf: Introduce KF_ARG_PTR_TO_CONST_STR Song Liu
2023-11-02  5:58   ` Alexei Starovoitov
2023-11-02  6:09     ` Song Liu
2023-10-24 23:55 ` [PATCH v6 bpf-next 4/9] bpf: Add kfunc bpf_get_file_xattr Song Liu
2023-11-02 17:01   ` Andrii Nakryiko
2023-10-24 23:55 ` [PATCH v6 bpf-next 5/9] bpf, fsverity: Add kfunc bpf_get_fsverity_digest Song Liu
2023-11-02  3:11   ` Eric Biggers [this message]
2023-10-24 23:55 ` [PATCH v6 bpf-next 6/9] Documentation/bpf: Add documentation for filesystem kfuncs Song Liu
2023-10-24 23:55 ` [PATCH v6 bpf-next 7/9] selftests/bpf: Sort config in alphabetic order Song Liu
2023-10-24 23:55 ` [PATCH v6 bpf-next 8/9] selftests/bpf: Add tests for filesystem kfuncs Song Liu
2023-10-24 23:55 ` [PATCH v6 bpf-next 9/9] selftests/bpf: Add test that uses fsverity and xattr to sign a file Song Liu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20231102031104.GB1498@sol.localdomain \
    --to=ebiggers@kernel.org \
    --cc=andrii@kernel.org \
    --cc=ast@kernel.org \
    --cc=bpf@vger.kernel.org \
    --cc=daniel@iogearbox.net \
    --cc=fsverity@lists.linux.dev \
    --cc=kernel-team@meta.com \
    --cc=martin.lau@kernel.org \
    --cc=roberto.sassu@huaweicloud.com \
    --cc=song@kernel.org \
    --cc=tytso@mit.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox