Re: [PATCH v2 17/36] fs: add ksys_chroot() helper; remove-in kernel calls to sys_chroot()
From: Christoph Hellwig
Date: Fri Mar 16 2018 - 04:49:49 EST
> > + ksys_chroot(".");
> > complete(&setup_done);
> > while (1) {
> > spin_lock(&req_lock);
>
> Could this be done using kern_path()/set_fs_root() instead so we
> avoid the __user pointer?
Agreed. Especially as we don't need any of the permission checks here.