diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/compat.h | 3 | ||||
-rw-r--r-- | include/linux/fs.h | 7 | ||||
-rw-r--r-- | include/linux/syscalls.h | 13 |
3 files changed, 19 insertions, 4 deletions
diff --git a/include/linux/compat.h b/include/linux/compat.h index c6e7523bf765..154bf5683015 100644 --- a/include/linux/compat.h +++ b/include/linux/compat.h | |||
@@ -547,7 +547,8 @@ extern ssize_t compat_rw_copy_check_uvector(int type, | |||
547 | const struct compat_iovec __user *uvector, | 547 | const struct compat_iovec __user *uvector, |
548 | unsigned long nr_segs, | 548 | unsigned long nr_segs, |
549 | unsigned long fast_segs, struct iovec *fast_pointer, | 549 | unsigned long fast_segs, struct iovec *fast_pointer, |
550 | struct iovec **ret_pointer); | 550 | struct iovec **ret_pointer, |
551 | int check_access); | ||
551 | 552 | ||
552 | extern void __user *compat_alloc_user_space(unsigned long len); | 553 | extern void __user *compat_alloc_user_space(unsigned long len); |
553 | 554 | ||
diff --git a/include/linux/fs.h b/include/linux/fs.h index 14493a2d5a03..87b4c6b9692d 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
@@ -1633,9 +1633,10 @@ struct inode_operations { | |||
1633 | struct seq_file; | 1633 | struct seq_file; |
1634 | 1634 | ||
1635 | ssize_t rw_copy_check_uvector(int type, const struct iovec __user * uvector, | 1635 | ssize_t rw_copy_check_uvector(int type, const struct iovec __user * uvector, |
1636 | unsigned long nr_segs, unsigned long fast_segs, | 1636 | unsigned long nr_segs, unsigned long fast_segs, |
1637 | struct iovec *fast_pointer, | 1637 | struct iovec *fast_pointer, |
1638 | struct iovec **ret_pointer); | 1638 | struct iovec **ret_pointer, |
1639 | int check_access); | ||
1639 | 1640 | ||
1640 | extern ssize_t vfs_read(struct file *, char __user *, size_t, loff_t *); | 1641 | extern ssize_t vfs_read(struct file *, char __user *, size_t, loff_t *); |
1641 | extern ssize_t vfs_write(struct file *, const char __user *, size_t, loff_t *); | 1642 | extern ssize_t vfs_write(struct file *, const char __user *, size_t, loff_t *); |
diff --git a/include/linux/syscalls.h b/include/linux/syscalls.h index 1ff0ec2a5e8d..86a24b1166d1 100644 --- a/include/linux/syscalls.h +++ b/include/linux/syscalls.h | |||
@@ -844,4 +844,17 @@ asmlinkage long sys_open_by_handle_at(int mountdirfd, | |||
844 | struct file_handle __user *handle, | 844 | struct file_handle __user *handle, |
845 | int flags); | 845 | int flags); |
846 | asmlinkage long sys_setns(int fd, int nstype); | 846 | asmlinkage long sys_setns(int fd, int nstype); |
847 | asmlinkage long sys_process_vm_readv(pid_t pid, | ||
848 | const struct iovec __user *lvec, | ||
849 | unsigned long liovcnt, | ||
850 | const struct iovec __user *rvec, | ||
851 | unsigned long riovcnt, | ||
852 | unsigned long flags); | ||
853 | asmlinkage long sys_process_vm_writev(pid_t pid, | ||
854 | const struct iovec __user *lvec, | ||
855 | unsigned long liovcnt, | ||
856 | const struct iovec __user *rvec, | ||
857 | unsigned long riovcnt, | ||
858 | unsigned long flags); | ||
859 | |||
847 | #endif | 860 | #endif |