Commit db74ece990ea59a9ec9f00f8881026059ef5caf5

Authored by Jan Blunck
Committed by Linus Torvalds
1 parent 0d63e4f9ea

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>

Showing 1 changed file with 1 additions and 4 deletions Side-by-side Diff

... ... @@ -173,10 +173,7 @@
173 173 */
174 174 set_user_nice(current, 0);
175 175  
176   - retval = -EPERM;
177   - if (current->fs->root)
178   - retval = kernel_execve(sub_info->path,
179   - sub_info->argv, sub_info->envp);
  176 + retval = kernel_execve(sub_info->path, sub_info->argv, sub_info->envp);
180 177  
181 178 /* Exec failed? */
182 179 sub_info->retval = retval;