diff options
Diffstat (limited to 'fs/exec.c')
-rw-r--r-- | fs/exec.c | 17 |
1 files changed, 0 insertions, 17 deletions
@@ -885,23 +885,6 @@ struct file *open_exec(const char *name) | |||
885 | } | 885 | } |
886 | EXPORT_SYMBOL(open_exec); | 886 | EXPORT_SYMBOL(open_exec); |
887 | 887 | ||
888 | int kernel_read(struct file *file, loff_t offset, | ||
889 | char *addr, unsigned long count) | ||
890 | { | ||
891 | mm_segment_t old_fs; | ||
892 | loff_t pos = offset; | ||
893 | int result; | ||
894 | |||
895 | old_fs = get_fs(); | ||
896 | set_fs(get_ds()); | ||
897 | /* The cast to a user pointer is valid due to the set_fs() */ | ||
898 | result = vfs_read(file, (void __user *)addr, count, &pos); | ||
899 | set_fs(old_fs); | ||
900 | return result; | ||
901 | } | ||
902 | |||
903 | EXPORT_SYMBOL(kernel_read); | ||
904 | |||
905 | int kernel_read_file(struct file *file, void **buf, loff_t *size, | 888 | int kernel_read_file(struct file *file, void **buf, loff_t *size, |
906 | loff_t max_size, enum kernel_read_file_id id) | 889 | loff_t max_size, enum kernel_read_file_id id) |
907 | { | 890 | { |