lkml.org 
[lkml]   [2018]   [Mar]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2 17/36] fs: add ksys_chroot() helper; remove-in kernel calls to sys_chroot()
> > +       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.

\
 
 \ /
  Last update: 2018-03-16 09:50    [W:0.121 / U:0.244 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site