Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 5073
b: refs/heads/master
c: 18586e7
h: refs/heads/master
i:
  5071: 7ca250d
v: v3
  • Loading branch information
Andreas Steinmetz authored and Linus Torvalds committed Jul 26, 2005
1 parent 0f329b3 commit 43f2964
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fc00a6274b786f6863b32c79ff6f92aa0960b789
refs/heads/master: 18586e721636527cb5177467fb17e2350615978a
3 changes: 2 additions & 1 deletion trunk/kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -3528,7 +3528,8 @@ int sched_setscheduler(struct task_struct *p, int policy, struct sched_param *pa
*/
if (!capable(CAP_SYS_NICE)) {
/* can't change policy */
if (policy != p->policy)
if (policy != p->policy &&
!p->signal->rlim[RLIMIT_RTPRIO].rlim_cur)
return -EPERM;
/* can't increase priority */
if (policy != SCHED_NORMAL &&
Expand Down

0 comments on commit 43f2964

Please sign in to comment.