init: add an init_chroot helper
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. Signed-off-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
@@ -1235,8 +1235,6 @@ asmlinkage long sys_ni_syscall(void);
|
||||
* Instead, use one of the functions which work equivalently, such as
|
||||
* the ksys_xyzyyz() functions prototyped below.
|
||||
*/
|
||||
|
||||
int ksys_chroot(const char __user *filename);
|
||||
ssize_t ksys_write(unsigned int fd, const char __user *buf, size_t count);
|
||||
int ksys_fchown(unsigned int fd, uid_t user, gid_t group);
|
||||
ssize_t ksys_read(unsigned int fd, char __user *buf, size_t count);
|
||||
|
||||
Reference in New Issue
Block a user