Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bbaa4168 authored by Eric Paris's avatar Eric Paris
Browse files

fanotify: sys_fanotify_mark declartion



This patch simply declares the new sys_fanotify_mark syscall

int fanotify_mark(int fanotify_fd, unsigned int flags, u64_mask,
		  int dfd const char *pathname)

Signed-off-by: default avatarEric Paris <eparis@redhat.com>
parent 52c923dd
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -843,4 +843,5 @@ ia32_sys_call_table:
	.quad sys_perf_event_open
	.quad compat_sys_recvmmsg
	.quad sys_fanotify_init
	.quad sys32_fanotify_mark
ia32_syscall_end:
+9 −0
Original line number Diff line number Diff line
@@ -546,3 +546,12 @@ asmlinkage long sys32_fallocate(int fd, int mode, unsigned offset_lo,
	return sys_fallocate(fd, mode, ((u64)offset_hi << 32) | offset_lo,
			     ((u64)len_hi << 32) | len_lo);
}

asmlinkage long sys32_fanotify_mark(int fanotify_fd, unsigned int flags,
				    u32 mask_lo, u32 mask_hi,
				    int fd, const char  __user *pathname)
{
	return sys_fanotify_mark(fanotify_fd, flags,
				 ((u64)mask_hi << 32) | mask_lo,
				 fd, pathname);
}
+3 −0
Original line number Diff line number Diff line
@@ -80,4 +80,7 @@ asmlinkage long sys32_rt_sigreturn(struct pt_regs *);

/* ia32/ipc32.c */
asmlinkage long sys32_ipc(u32, int, int, int, compat_uptr_t, u32);

asmlinkage long sys32_fanotify_mark(int, unsigned int, u32, u32, int,
				    const char __user *);
#endif /* _ASM_X86_SYS_IA32_H */
+2 −1
Original line number Diff line number Diff line
@@ -344,10 +344,11 @@
#define __NR_perf_event_open	336
#define __NR_recvmmsg		337
#define __NR_fanotify_init	338
#define __NR_fanotify_mark	339

#ifdef __KERNEL__

#define NR_syscalls 339
#define NR_syscalls 340

#define __ARCH_WANT_IPC_PARSE_VERSION
#define __ARCH_WANT_OLD_READDIR
+2 −0
Original line number Diff line number Diff line
@@ -665,6 +665,8 @@ __SYSCALL(__NR_perf_event_open, sys_perf_event_open)
__SYSCALL(__NR_recvmmsg, sys_recvmmsg)
#define __NR_fanotify_init			300
__SYSCALL(__NR_fanotify_init, sys_fanotify_init)
#define __NR_fanotify_mark			301
__SYSCALL(__NR_fanotify_mark, sys_fanotify_mark)

#ifndef __NO_STUBS
#define __ARCH_WANT_OLD_READDIR
Loading