[LTP] [PATCH v5 00/10] Introduce SAFE_FANOTIFY_MARK() macro + cleanup

Amir Goldstein amir73il@gmail.com
Wed Dec 2 07:47:30 CET 2020


On Tue, Dec 1, 2020 at 7:42 PM Petr Vorel <pvorel@suse.cz> wrote:
>
> Hi Amir,
>
> Changes v4->v5:
> * Fix issue with "fanotify: Add helper for FAN_REPORT_FID support on fs"
>   on fanotify01 (unwanted skipping tests). FAN_REPORT_FID is now tested
>   both for general support in kernel with fanotify_init() and support on
>   tested filesystem in fanotify_mark().
>
> * Fix issue with FAN_MARK_FILESYSTEM (new commit "fanotify: Add helper
>   for mark support check").
>
> * Split "[v4,2/6] fanotify: Handle supported features checks in setup()"
>   into two commits:
>   fanotify: Add helper for access permission check
>   fanotify: Add helper for event support check
>   (easier to review).
>
> * Drop commit "[v4,5/6] fanotify: Check FAN_REPORT_{FID, NAME} support"
>   => IMHO not needed now, as there are {REQUIRE_,}FANOTIFY_FAN_REPORT_FID_ERR_MSG()
>   helpers which check for FAN_REPORT_FID. Or am I'm wrong and you need it
>   for your patchset?

You are right.
My patch set can and will use FANOTIFY_FAN_REPORT_FID_ERR_MSG.

>   There will be needed to add also helper for FAN_REPORT_NAME/FAN_REPORT_DIR_FID
>   for fanotify10.c (for kernels > 5.1 && < 5.9), but this is now covered by check
>   in create_fanotify_groups() and I don't want to block your patchset even more.
>   And this helper should eliminate a need for check in safe_fanotify_init().
>

My patch set grows another test case with FAN_REPORT_NAME to fanotify09
so it is more than fare to leave that last cleanup to me ;-)

Looking forward for the merge of your work.
Thanks!

Amir.


More information about the ltp mailing list