[LTP] [PATCH 0/4] New tests for fanotify pre-content events

Amir Goldstein amir73il@gmail.com
Mon Feb 10 16:13:12 CET 2025


Petr,

These are the tests used for the development of the fanotify pre-content
(a.k.a HSM) events feature that was merged to v6.14-rc1.

Because this is a new test for a new feature, which is skipped on old
kernels, I am posting it early, so that others could run the tests.

Following the request to split out large fanotify LTP tests, I resisted
the temptation to add a pre-content events variant to the existing
fanotify03 test and I forked it to a new test.

I did however add one test case to fanotify14, because as I wrote
before, I find it useful to keep the test matrix of allowed flag
combinations within the same test.

I also added two test cases to fanotify03 before forking it for cases
that were regressed during the 6.14 devlopment cycle and did not have
proper test converage.

The number of test cases in fanotify is still below 10, so I was hoping
this addition is still acceptable.

Thanks,
Amir.

Amir Goldstein (4):
  fanotify14: Test invalid init flags with permission and pre-content
    events
  fanotify03: Add test cases for permission events on children
  fanotify24: Add test for FAN_PRE_ACCESS and FAN_DENY_ERRNO
  fanotify24: Test open for write of executable files with pre-content
    watch

 include/lapi/fanotify.h                       |  12 +
 runtest/syscalls                              |   1 +
 testcases/kernel/syscalls/fanotify/.gitignore |   1 +
 testcases/kernel/syscalls/fanotify/fanotify.h |   3 +
 .../kernel/syscalls/fanotify/fanotify03.c     |  47 +-
 .../kernel/syscalls/fanotify/fanotify14.c     |  20 +
 .../kernel/syscalls/fanotify/fanotify24.c     | 472 ++++++++++++++++++
 7 files changed, 550 insertions(+), 6 deletions(-)
 create mode 100644 testcases/kernel/syscalls/fanotify/fanotify24.c

-- 
2.34.1



More information about the ltp mailing list