Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 54642
b: refs/heads/master
c: b73a7e7
h: refs/heads/master
v: v3
  • Loading branch information
Jan Engelhardt authored and Linus Torvalds committed May 8, 2007
1 parent 629c43d commit 8817a49
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6672f76a5a1878d42264c1deba8f1ab52b4618d9
refs/heads/master: b73a7e76c1eeaa770a41554698917c3c45686a07
6 changes: 6 additions & 0 deletions trunk/kernel/kmod.c
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,12 @@ static int ____call_usermodehelper(void *data)
/* We can run anywhere, unlike our parent keventd(). */
set_cpus_allowed(current, CPU_MASK_ALL);

/*
* Our parent is keventd, which runs with elevated scheduling priority.
* Avoid propagating that into the userspace child.
*/
set_user_nice(current, 0);

retval = -EPERM;
if (current->fs->root)
retval = kernel_execve(sub_info->path,
Expand Down

0 comments on commit 8817a49

Please sign in to comment.