mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 01:49:46 +00:00
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:
@@ -530,7 +530,7 @@ out:
|
||||
return error;
|
||||
}
|
||||
|
||||
int ksys_chroot(const char __user *filename)
|
||||
SYSCALL_DEFINE1(chroot, const char __user *, filename)
|
||||
{
|
||||
struct path path;
|
||||
int error;
|
||||
@@ -563,11 +563,6 @@ out:
|
||||
return error;
|
||||
}
|
||||
|
||||
SYSCALL_DEFINE1(chroot, const char __user *, filename)
|
||||
{
|
||||
return ksys_chroot(filename);
|
||||
}
|
||||
|
||||
static int chmod_common(const struct path *path, umode_t mode)
|
||||
{
|
||||
struct inode *inode = path->dentry->d_inode;
|
||||
|
||||
Reference in New Issue
Block a user