mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 22:21:40 +00:00
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
@ -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 New Issue
Block a user