inotify: add x86-64 syscall numbers
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 4 lines · Robert Love
Andi,
Attached patch adds the inotify syscall numbers to x86-64. Also adds the new
ioprio_get()andioprio_set()calls to the IA32 layer.
It won't work anyways because you forgot to patch the compat sys32_open.
-Andi
Quoted 2 lines · Andi Kleen
It won't work anyways because you forgot to patch the compat
sys32_open.
Well, "won't work" is a bit harsh, its just one hook. But that was next.
I usually leave per-arch stuff to the arch folks.
Robert Love
Add fsnotify_open() hook to sys32_open() on x86-64.
Signed-off-by Robert Love <[email protected]>
arch/x86_64/ia32/sys_ia32.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletion(-)
arch/x86_64/ia32/sys_ia32.c +4 -1
@@ -61,6 +61,7 @@#include <linux/ptrace.h> #include <linux/highuid.h> #include <linux/vmalloc.h> +#include <linux/fsnotify.> #include <asm/mman.h> #include <asm/types.h> #include <asm/uaccess.h>
@@ -984,8 +985,10 @@if (IS_ERR (f)) {put_unused_fd (fd); fd = error; - }else + }else { +fsnotify_open (f->f_dentry);fd_install (fd, f); + } }putname (tmp); }