aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/kmod.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/kmod.c')
-rw-r--r--kernel/kmod.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/kmod.c b/kernel/kmod.c
index 11c584cd16b3..49cc4b9c1a8d 100644
--- a/kernel/kmod.c
+++ b/kernel/kmod.c
@@ -165,6 +165,12 @@ static int ____call_usermodehelper(void *data)
165 /* We can run anywhere, unlike our parent keventd(). */ 165 /* We can run anywhere, unlike our parent keventd(). */
166 set_cpus_allowed(current, CPU_MASK_ALL); 166 set_cpus_allowed(current, CPU_MASK_ALL);
167 167
168 /*
169 * Our parent is keventd, which runs with elevated scheduling priority.
170 * Avoid propagating that into the userspace child.
171 */
172 set_user_nice(current, 0);
173
168 retval = -EPERM; 174 retval = -EPERM;
169 if (current->fs->root) 175 if (current->fs->root)
170 retval = kernel_execve(sub_info->path, 176 retval = kernel_execve(sub_info->path,