mbox series

[0/2] fstests: add two tests for the precontent fanotify work

Message ID cover.1725481837.git.josef@toxicpanda.com (mailing list archive)
Headers show
Series fstests: add two tests for the precontent fanotify work | expand

Message

Josef Bacik Sept. 4, 2024, 8:32 p.m. UTC
Hello,

These are for the fanotify pre-content hooks feature which is posted here

https://lore.kernel.org/linux-fsdevel/cover.1725481503.git.josef@toxicpanda.com/

It adds a couple of c files to do the work necessary to setup the directories
and do the watches, and has two tests, one to validate we get the right values
on mmap and reads, and another to validate that executables work properly.

I've tested them to make sure they work properly with xfs, btrfs, ext4, and
bcachefs with my patches applied.  Thanks,

Josef

Josef Bacik (2):
  fstests: add a test for the precontent fanotify hooks
  fstests: add a test for executing from a precontent watch directory

 doc/group-names.txt            |   1 +
 src/Makefile                   |   2 +-
 src/precontent/Makefile        |  26 ++
 src/precontent/mmap-validate.c | 227 +++++++++++++++++
 src/precontent/populate.c      | 188 ++++++++++++++
 src/precontent/remote-fetch.c  | 441 +++++++++++++++++++++++++++++++++
 tests/generic/800              |  68 +++++
 tests/generic/800.out          |   2 +
 tests/generic/801              |  64 +++++
 tests/generic/801.out          |   2 +
 10 files changed, 1020 insertions(+), 1 deletion(-)
 create mode 100644 src/precontent/Makefile
 create mode 100644 src/precontent/mmap-validate.c
 create mode 100644 src/precontent/populate.c
 create mode 100644 src/precontent/remote-fetch.c
 create mode 100644 tests/generic/800
 create mode 100644 tests/generic/800.out
 create mode 100644 tests/generic/801
 create mode 100644 tests/generic/801.out