summaryrefslogtreecommitdiff
path: root/fs/open.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2020-07-22 11:26:13 +0200
committerChristoph Hellwig <hch@lst.de>2020-07-31 08:17:52 +0200
commit4b7ca5014cbef51cdb99fd644eae4f3773747a05 (patch)
tree694867036c56c7e99e0dd8754af9526d8d00c04c /fs/open.c
parentdb63f1e315384590b979f8f74abd1b5363b69894 (diff)
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>
Diffstat (limited to 'fs/open.c')
-rw-r--r--fs/open.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/fs/open.c b/fs/open.c
index 723e0ac89893..f62f4752bb43 100644
--- a/fs/open.c
+++ b/fs/open.c
@@ -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;