Like ksys_umount, but takes a kernel pointer for the destination path. Switch over the umount in the init code, which just happen to work due to the implicit set_fs(KERNEL_DS) during early init right now.
Showing the changes to include/linux (2 of 6 files). Show all
Unified · Split
| @@ -2,3 +2,4 @@ · 1 unmodified line | ||
| 2 | 2 | |
| 3 | 3 | int __init init_mount(const char *dev_name, const char *dir_name, |
| 4 | 4 | const char *type_page, unsigned long flags, void *data_page); |
| 5 | +int __init init_umount(const char *name, int flags); | |
| @@ -1236,7 +1236,6 @@ asmlinkage long sys_ni_syscall(void); · 1235 unmodified lines | ||
| 1236 | 1236 | * the ksys_xyzyyz() functions prototyped below. |
| 1237 | 1237 | */ |
| 1238 | 1238 | |
| 1239 | −int ksys_umount(char __user *name, int flags); | |
| 1240 | 1239 | int ksys_chroot(const char __user *filename); |
| 1241 | 1240 | ssize_t ksys_write(unsigned int fd, const char __user *buf, size_t count); |
| 1242 | 1241 | int ksys_chdir(const char __user *filename); |