Add a simple helper to chroot with a kernel space file name and switch the early init code over to it. Remove the now unused ksys_chroot.
Showing the changes to include/linux (2 of 7 files). Show all
Unified · Split
| @@ -4,5 +4,6 @@ int __init init_mount(const char *dev_name, const char *dir_name, · 3 unmodified lines | ||
| 4 | 4 | const char *type_page, unsigned long flags, void *data_page); |
| 5 | 5 | int __init init_umount(const char *name, int flags); |
| 6 | 6 | int __init init_chdir(const char *filename); |
| 7 | +int __init init_chroot(const char *filename); | |
| 7 | 8 | int __init init_unlink(const char *pathname); |
| 8 | 9 | int __init init_rmdir(const char *pathname); |
| @@ -1235,8 +1235,6 @@ asmlinkage long sys_ni_syscall(void); · 1234 unmodified lines | ||
| 1235 | 1235 | * Instead, use one of the functions which work equivalently, such as |
| 1236 | 1236 | * the ksys_xyzyyz() functions prototyped below. |
| 1237 | 1237 | */ |
| 1238 | − | |
| 1239 | −int ksys_chroot(const char __user *filename); | |
| 1240 | 1238 | ssize_t ksys_write(unsigned int fd, const char __user *buf, size_t count); |
| 1241 | 1239 | int ksys_fchown(unsigned int fd, uid_t user, gid_t group); |
| 1242 | 1240 | ssize_t ksys_read(unsigned int fd, char __user *buf, size_t count); |