Dont touch fs_struct in usermodehelper
This test seems to be unnecessary since we always have rootfs mounted before calling a usermodehelper. Signed-off-by: Andreas Gruenbacher <agruen@suse.de> Signed-off-by: Jan Blunck <jblunck@suse.de> Acked-by: Christoph Hellwig <hch@lst.de> Acked-by: Greg KH <greg@kroah.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
0d63e4f9ea
commit
db74ece990
1 changed files with 1 additions and 4 deletions
|
@ -173,10 +173,7 @@ static int ____call_usermodehelper(void *data)
|
|||
*/
|
||||
set_user_nice(current, 0);
|
||||
|
||||
retval = -EPERM;
|
||||
if (current->fs->root)
|
||||
retval = kernel_execve(sub_info->path,
|
||||
sub_info->argv, sub_info->envp);
|
||||
retval = kernel_execve(sub_info->path, sub_info->argv, sub_info->envp);
|
||||
|
||||
/* Exec failed? */
|
||||
sub_info->retval = retval;
|
||||
|
|
Loading…
Reference in a new issue