Commit 1824074b authored by James Bottomley's avatar James Bottomley Committed by James Bottomley

[PARISC] wire up fanotify syscalls

Cc: stable@kernel.org
Signed-off-by: default avatarJames Bottomley <James.Bottomley@HansenPartnership.com>
parent b54cd0d5
...@@ -814,8 +814,10 @@ ...@@ -814,8 +814,10 @@
#define __NR_recvmmsg (__NR_Linux + 319) #define __NR_recvmmsg (__NR_Linux + 319)
#define __NR_accept4 (__NR_Linux + 320) #define __NR_accept4 (__NR_Linux + 320)
#define __NR_prlimit64 (__NR_Linux + 321) #define __NR_prlimit64 (__NR_Linux + 321)
#define __NR_fanotify_init (__NR_Linux + 322)
#define __NR_fanotify_mark (__NR_Linux + 323)
#define __NR_Linux_syscalls (__NR_prlimit64 + 1) #define __NR_Linux_syscalls (__NR_fanotify_mark + 1)
#define __IGNORE_select /* newselect */ #define __IGNORE_select /* newselect */
......
...@@ -228,3 +228,11 @@ asmlinkage long compat_sys_fallocate(int fd, int mode, u32 offhi, u32 offlo, ...@@ -228,3 +228,11 @@ asmlinkage long compat_sys_fallocate(int fd, int mode, u32 offhi, u32 offlo,
return sys_fallocate(fd, mode, ((loff_t)offhi << 32) | offlo, return sys_fallocate(fd, mode, ((loff_t)offhi << 32) | offlo,
((loff_t)lenhi << 32) | lenlo); ((loff_t)lenhi << 32) | lenlo);
} }
asmlinkage long compat_sys_fanotify_mark(int fan_fd, int flags, u32 mask_hi,
u32 mask_lo, int fd,
const char __user *pathname)
{
return sys_fanotify_mark(fan_fd, flags, ((u64)mask_hi << 32) | mask_lo,
fd, pathname);
}
...@@ -420,6 +420,8 @@ ...@@ -420,6 +420,8 @@
ENTRY_COMP(recvmmsg) ENTRY_COMP(recvmmsg)
ENTRY_SAME(accept4) /* 320 */ ENTRY_SAME(accept4) /* 320 */
ENTRY_SAME(prlimit64) ENTRY_SAME(prlimit64)
ENTRY_SAME(fanotify_init)
ENTRY_COMP(fanotify_mark)
/* Nothing yet */ /* Nothing yet */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment