Description of problem: On mageia 6 (and 5), try to use fanotify api to monitor files events. I first try with the c code example from man 7 fanotify but the program always exit with the errno message : fanotify_mark: Invalid argument. the same code works without any problem on other recent linux distributions : fedora 26, ubuntu 17.04 Version-Release number of selected component (if applicable): tested with kernel 4.9.90-desktop-1, 4.9.35-server-1 How reproducible: every time Steps to Reproduce: 1. take the c code example from man 7 fanotify : test_fanotify.c 2. compile it with : gcc -o test_fanotify test_fanotify.c 3. run it under root : sudo ./test_fanotify /tmp
Created attachment 9583 [details] test code from man 7 fanotify
Assignee: bugsquad => kernelCC: (none) => marja11
The test code does not work because CONFIG_FANOTIFY_ACCESS_PERMISSIONS is not set in the kernel. $ grep FANOTIFY /boot/config-4.9.35-server-1.mga6 CONFIG_FANOTIFY=y # CONFIG_FANOTIFY_ACCESS_PERMISSIONS is not set
I have enabled it in kernel-4.9.50-1 currently in updates_testing
CC: (none) => tmbDepends on: (none) => 21708
FANOTIFY_ACCESS_PERMISSIONS enabled on all kernels
Resolution: (none) => FIXEDStatus: NEW => RESOLVED