Skip to content

New tests for fanotify pre-content events

Amir Goldstein ltp 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 16 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4fanotify14: Test invalid init flags with permission and pre-content eventsinclude/lapi/fanotify.h testcases/kernel/syscalls/fanotify/fanotify14.c+25 -02 replies
2/4fanotify03: Add test cases for permission events on childrentestcases/kernel/syscalls/fanotify/fanotify03.c+41 -65 replies
3/4fanotify24: Add test for FAN_PRE_ACCESS and FAN_DENY_ERRNOinclude/lapi/fanotify.h runtest/syscalls testcases/kernel/syscalls/fanotify/.gitignore +2 more+445 -08 replies
4/4fanotify24: Test open for write of executable files with pre-content watchtestcases/kernel/syscalls/fanotify/fanotify24.c+41 -21 reply

Reviews trailers per patch

3 of 4 patches have a Reviewed-by or Acked-by.

PatchJan Kara
1/4R-b
2/4R-b
3/4
4/4R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

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

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
Signature · 5 lines
2.34.1


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp